teloxide/src/lib.rs

35 lines
1.1 KiB
Rust
Raw Normal View History

//! A full-featured framework that empowers you to easily build [Telegram bots]
//! using the [`async`/`.await`] syntax in [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](https://github.com/teloxide/teloxide).
//!
//! [Telegram bots]: https://telegram.org/blog/bot-revolution
//! [`async`/`.await`]: https://rust-lang.github.io/async-book/01_getting_started/01_chapter.html
//! [Rust]: https://www.rust-lang.org/
2020-02-19 21:32:42 +06:00
// https://github.com/teloxide/teloxide/raw/master/logo.svg doesn't work in html_logo_url, I don't know why.
2019-12-13 10:20:49 +06:00
#![doc(
2020-02-19 21:32:42 +06:00
html_logo_url = "https://github.com/teloxide/teloxide/raw/master/ICON.png",
2020-02-14 18:28:52 +06:00
html_favicon_url = "https://github.com/teloxide/teloxide/raw/master/ICON.png"
2019-12-13 10:20:49 +06:00
)]
2019-12-30 12:29:11 +03:00
#![allow(clippy::match_bool)]
2020-07-16 21:41:14 +06:00
#![forbid(unsafe_code)]
2020-07-16 19:14:32 +06:00
pub use bot::{Bot, BotBuilder};
pub use errors::{ApiErrorKind, DownloadError, KnownApiErrorKind, RequestError};
2019-10-01 13:15:03 +06:00
mod errors;
mod net;
2019-09-21 00:02:37 +03:00
2019-10-18 03:36:13 +06:00
mod bot;
2019-10-20 22:52:48 +06:00
pub mod dispatching;
2020-02-19 04:54:41 +06:00
pub mod error_handlers;
2020-02-13 23:23:22 +06:00
mod logging;
2020-01-30 00:11:52 +06:00
pub mod prelude;
2019-09-21 00:02:37 +03:00
pub mod requests;
pub mod types;
pub mod utils;
extern crate teloxide_macros;