TeleApi 0.1.0

A package for help telegram bots programmers
Documentation
TeleApi-0.1.0 has been yanked.

Tele Api

Example for use

use TeleApi::TeleApi; 

#[tokio::main]
async fn main() -> Result<(), reqwest::Error> {
    let token = ""; // bot token here 
    let tele_api = TeleApi::new(token);

    let chat_id = 123456;
    let method = "sendMessage";
    let text = "Hi";
    let params = [
        ("chat_id", chat_id.to_string().as_str()),
        ("text", text),
    ];

    tele_api.execute(method, &params).await?;

    Ok(())
}

Community