TeleApi

Crates.ioTeleApi
lib.rsTeleApi
version0.1.4
sourcesrc
created_at2023-11-15 18:00:30.461734
updated_at2023-11-18 19:58:27.219752
descriptionA package for help telegram bots programmers
homepage
repository
max_upload_size
id1036634
size9,278
(ArabShadows)

documentation

https://github.com/ArabShadows/TeleApi

README

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

Commit count: 0

cargo fmt