Registry / async / teloxide

teloxide

JSON →
library0.17.0rscratesunverified

An elegant Telegram bots framework for Rust.

# Cargo.toml [dependencies] teloxide = "0.17.0"
INSTALL
IMPORT
SIG · TELOXIDE
T
teloxide
asyncrustv0.17.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Bot
use teloxide::Bot;

Creates a Telegram bot instance using a token.

use teloxide::Bot; #[tokio::main] async fn main() { let bot = Bot::new("YOUR_BOT_TOKEN"); println!("Bot created"); }
Debug
Known issues
gotchaRequires a Tokio async runtime; using other runtimes may cause panics.
fix
Use #[tokio::main] or manually create a Tokio runtime.
affects: >=0.17.0
Upgrade
Version history
0.17.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
26
OpenAI (training)
1
Resources
teloxide — cargo add teloxide · libregistry