Type definitions for the Telegram Bot API.
This crate contains every struct, enum, and type alias described in the
official Bot API documentation.
All types implement [serde::Serialize] and [serde::Deserialize] and
map directly to the JSON objects Telegram sends and receives.
You rarely need to depend on this crate directly — the rustigram facade
re-exports everything you need for day-to-day bot development.
Organisation
| Module | Contents |
|---|---|
[chat] |
[chat::Chat], [chat::ChatFullInfo], [chat::ChatPermissions], locations, venues |
[chat_member] |
All six [chat_member::ChatMember] variants |
[mod@file] |
[file::File], [file::PhotoSize], [file::InputFile], media types |
[message] |
[message::Message], [message::MessageEntity], [message::ParseMode], reply types |
[update] |
[update::Update], [update::UpdateKind], [update::CallbackQuery] |
[user] |
[user::User], [user::ChatId], [user::BotCommand] |
[keyboard] |
Inline and reply keyboards, [keyboard::ReplyMarkup] |
[payments] |
[payments::LabeledPrice], invoices, Star transactions |
[poll] |
[poll::Poll], [poll::PollAnswer], [poll::InputPollOption] |
[sticker] |
[sticker::Sticker], [sticker::StickerSet], [sticker::InputSticker] |
[inline] |
[inline::InlineQuery], all InlineQueryResult variants |
[story] |
Story types and area definitions |
[forum] |
[forum::ForumTopic] |
[passport] |
Telegram Passport types and error variants |
[games] |
[games::GameHighScore] |
[gifts] |
[gifts::Gift], [gifts::Gifts] |
[reaction] |
Re-exports [message::ReactionType] |
[webhook] |
[webhook::WebhookInfo] |