telegram-bot-fork 0.7.8

A library for creating Telegram bots
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::fmt::Debug;

use future::TelegramFuture;

use telegram_bot_fork_raw::{HttpRequest, HttpResponse};

/// Connector provides basic IO with Telegram Bot API server.
pub trait Connector: Debug {
    fn request(
        &self,
        url: Option<&str>,
        token: &str,
        req: HttpRequest,
    ) -> TelegramFuture<HttpResponse>;
}