32 releases
0.12.2 | Feb 15, 2023 |
---|---|
0.12.0 | Jan 17, 2023 |
0.11.3 | Nov 28, 2022 |
0.10.1 | Jul 22, 2022 |
0.2.0 | Feb 25, 2020 |
#180 in Web programming
10,913 downloads per month
Used in 48 crates
(41 directly)
1.5MB
29K
SLoC
See README.md
at the root of the repository.
lib.rs
:
A full-featured framework that empowers you to easily build Telegram bots using Rust. 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–33MB
~548K SLoC