3 releases
0.1.4 | Nov 18, 2023 |
---|---|
0.1.3 | Nov 18, 2023 |
0.1.2 | Nov 16, 2023 |
0.1.1 |
|
0.1.0 |
|
#41 in #telegram-api
26 downloads per month
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
- Join the telegram channel: https://t.me/tshreeb_programming
Dependencies
~7–19MB
~259K SLoC