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 games::*;
pub use getters::*;
pub use gifts::*;
pub use inline::*;
pub use miniapp::*;
pub use passport::*;
pub use payments::*;
pub use reactions::*;
pub use sending::*;
pub use stickers::*;
pub use stories::*;
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.
games
Game score and high score methods.
getters
Information retrieval methods.
gifts
Gift sending and management methods.
inline
Inline query handling methods.
miniapp
Mini App keyboard button and emoji status methods.
passport
Telegram Passport error reporting methods.
payments
Payment and Stars methods.
reactions
Message reaction methods.
sending
Message and media sending methods.
stickers
Sticker set management methods.
stories
Story posting and management methods (business bots).
updates
Update fetching and webhook configuration methods.
verification
User and chat verification methods.