2020-02-14 13:56:41 +06:00
|
|
|
//! 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.
|
|
|
|
//!
|
2020-03-06 15:05:44 +06:00
|
|
|
//! For a high-level overview, see [our GitHub repository](https://github.com/teloxide/teloxide).
|
2020-02-14 13:56:41 +06:00
|
|
|
//!
|
|
|
|
//! [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)]
|
2019-11-02 17:15:13 +03:00
|
|
|
|
2020-07-16 19:14:32 +06:00
|
|
|
pub use bot::{Bot, BotBuilder};
|
2020-07-26 23:47:02 +06:00
|
|
|
pub use errors::{ApiErrorKind, DownloadError, KnownApiErrorKind, RequestError};
|
2019-10-01 13:15:03 +06:00
|
|
|
|
2019-09-21 05:39:27 +06:00
|
|
|
mod errors;
|
2020-01-22 07:04:17 +06:00
|
|
|
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;
|
2020-01-02 22:26:25 +03:00
|
|
|
pub mod utils;
|
2020-01-18 15:14:31 +02:00
|
|
|
|
|
|
|
extern crate teloxide_macros;
|