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

Download history 2151/week @ 2023-12-04 2529/week @ 2023-12-11 3014/week @ 2023-12-18 2426/week @ 2023-12-25 2288/week @ 2024-01-01 3305/week @ 2024-01-08 2704/week @ 2024-01-15 2843/week @ 2024-01-22 2155/week @ 2024-01-29 2019/week @ 2024-02-05 2279/week @ 2024-02-12 2722/week @ 2024-02-19 2693/week @ 2024-02-26 2974/week @ 2024-03-04 2954/week @ 2024-03-11 2818/week @ 2024-03-18

11,708 downloads per month
Used in 47 crates (40 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

~10–32MB
~556K SLoC