Skip to main content

Module methods

Module methods 

Source
Expand description

Typed method builders for every Telegram Bot API endpoint. Typed builder structs for every Telegram Bot API method.

Every method is implemented as a builder that carries its required and optional parameters, then executes via .await. All builders implement IntoFuture so they can be await-ed directly.

§Example

use rustigram_api::BotClient;

let msg = client
    .send_message(12345, "Hello!")
    .parse_mode(rustigram_types::message::ParseMode::HTML)
    .disable_notification(true)
    .await?;

Re-exports§

pub use bot_settings::*;
pub use business::*;
pub use chat_management::*;
pub use editing::*;
pub use forum::*;
pub use getters::*;
pub use inline::*;
pub use payments::*;
pub use reactions::*;
pub use sending::*;
pub use stickers::*;
pub use updates::*;
pub use verification::*;

Modules§

bot_settings
Bot identity and command configuration methods.
business
Business account management methods.
chat_management
Chat membership and administration methods.
editing
Message editing methods.
forum
Forum topic management methods.
getters
Information retrieval methods.
inline
Inline query handling methods.
payments
Payment and Stars methods.
reactions
Message reaction methods.
sending
Message and media sending methods.
stickers
Sticker set management methods.
updates
Update fetching and webhook configuration methods.
verification
User and chat verification methods.