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 |
#154 in Web programming
11,708 downloads per month
Used in 47 crates
(40 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
~10–32MB
~556K SLoC