9 releases
0.6.18 | Oct 9, 2023 |
---|---|
0.6.17 | Aug 23, 2023 |
0.6.16 | Jul 14, 2023 |
0.6.15 | Mar 22, 2023 |
0.6.8 | Feb 9, 2022 |
#1434 in Web programming
32 downloads per month
290KB
3.5K
SLoC
rutel
Telegram Bot API implementation in Rust
Telegram Bot API 6.9
lib.rs
:
Telegram bot API implementation on Rust Programming Language. It handles all the difficult stuff so you can focus only on your business logic.
For a high-level overview, see our GitHub repository.
use teloxide::prelude::*;
pretty_env_logger::init();
log::info!("Starting throw dice bot...");
let bot = Bot::from_env();
teloxide::repl(bot, |bot: Bot, msg: Message| async move {
bot.send_dice(msg.chat.id).await?;
Ok(())
})
.await;
Dependencies
~9–18MB
~233K SLoC