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

#1339 in Web programming

MIT/Apache

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.

[examples/throw_dice.rs]

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

~8–17MB
~233K SLoC