TeleApi 0.1.4

A package for help telegram bots programmers
Documentation

Tele Api

Example for use

use TeleApi; 

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

    let chat_id: i64 = 123456789;
    let text = "Hi TeleApi";

    bot.sendMessage(params!("chat_id" => chat_id, "text" => text)).await?;

    Ok(())
}

Community