#telegram-bot #telegram-api #bot-api #send-message #tokio

TeleApi

A package for help telegram bots programmers

3 releases

0.1.4 Nov 18, 2023
0.1.3 Nov 18, 2023
0.1.2 Nov 16, 2023
0.1.1 Nov 15, 2023
0.1.0 Nov 15, 2023

#41 in #telegram-api

26 downloads per month

MIT license

10KB
281 lines

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

Dependencies

~7–19MB
~259K SLoC