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

Download history 2569/week @ 2024-01-03 3042/week @ 2024-01-10 2952/week @ 2024-01-17 2592/week @ 2024-01-24 1904/week @ 2024-01-31 2171/week @ 2024-02-07 2405/week @ 2024-02-14 2663/week @ 2024-02-21 3014/week @ 2024-02-28 2969/week @ 2024-03-06 2946/week @ 2024-03-13 2525/week @ 2024-03-20 2594/week @ 2024-03-27 2813/week @ 2024-04-03 2787/week @ 2024-04-10 2370/week @ 2024-04-17

10,913 downloads per month
Used in 48 crates (41 directly)

MIT license

1.5MB
29K SLoC

Rust 25K SLoC // 0.0% comments Rusty Object Notation 4K SLoC // 0.0% comments

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.

[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

~9–33MB
~548K SLoC