Skip to main content

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/// Game score and high score methods.
33pub mod games;
34/// Information retrieval methods.
35pub mod getters;
36/// Gift sending and management methods.
37pub mod gifts;
38/// Inline query handling methods.
39pub mod inline;
40/// Mini App keyboard button and emoji status methods.
41pub mod miniapp;
42/// Telegram Passport error reporting methods.
43pub mod passport;
44/// Payment and Stars methods.
45pub mod payments;
46/// Message reaction methods.
47pub mod reactions;
48/// Message and media sending methods.
49pub mod sending;
50/// Sticker set management methods.
51pub mod stickers;
52/// Story posting and management methods (business bots).
53pub mod stories;
54/// Update fetching and webhook configuration methods.
55pub mod updates;
56/// User and chat verification methods.
57pub mod verification;
58
59pub use bot_settings::*;
60pub use business::*;
61pub use chat_management::*;
62pub use editing::*;
63pub use forum::*;
64pub use games::*;
65pub use getters::*;
66pub use gifts::*;
67pub use inline::*;
68pub use miniapp::*;
69pub use passport::*;
70pub use payments::*;
71pub use reactions::*;
72pub use sending::*;
73pub use stickers::*;
74pub use stories::*;
75pub use updates::*;
76pub use verification::*;