rustigram_api/methods/mod.rs
1//! Typed builder structs for every Telegram Bot API method.
2//!
3//! Every method is implemented as a builder that carries its required and
4//! optional parameters, then executes via `.await`. All builders implement
5//! `IntoFuture` so they can be `await`-ed directly.
6//!
7//! # Example
8//!
9//! ```rust,no_run
10//! use rustigram_api::BotClient;
11//!
12//! # async fn example(client: BotClient) -> rustigram_api::Result<()> {
13//! let msg = client
14//! .send_message(12345, "Hello!")
15//! .parse_mode(rustigram_types::message::ParseMode::HTML)
16//! .disable_notification(true)
17//! .await?;
18//! # Ok(())
19//! # }
20//! ```
21
22/// Bot identity and command configuration methods.
23pub mod bot_settings;
24/// Business account management methods.
25pub mod business;
26/// Chat membership and administration methods.
27pub mod chat_management;
28/// Message editing methods.
29pub mod editing;
30/// Forum topic management methods.
31pub mod forum;
32/// Information retrieval methods.
33pub mod getters;
34/// Inline query handling methods.
35pub mod inline;
36/// Payment and Stars methods.
37pub mod payments;
38/// Message reaction methods.
39pub mod reactions;
40/// Message and media sending methods.
41pub mod sending;
42/// Sticker set management methods.
43pub mod stickers;
44/// Update fetching and webhook configuration methods.
45pub mod updates;
46/// User and chat verification methods.
47pub mod verification;
48
49pub use bot_settings::*;
50pub use business::*;
51pub use chat_management::*;
52pub use editing::*;
53pub use forum::*;
54pub use getters::*;
55pub use inline::*;
56pub use payments::*;
57pub use reactions::*;
58pub use sending::*;
59pub use stickers::*;
60pub use updates::*;
61pub use verification::*;