Expand description
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 |
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 |
Re-exports§
pub use chat::Chat;pub use chat::ChatFullInfo;pub use chat::ChatPermissions;pub use chat::ChatType;pub use chat_member::ChatMember;pub use chat_member::ChatMemberAdministrator;pub use chat_member::ChatMemberBanned;pub use chat_member::ChatMemberLeft;pub use chat_member::ChatMemberMember;pub use chat_member::ChatMemberOwner;pub use chat_member::ChatMemberRestricted;pub use file::File;pub use file::PhotoSize;pub use inline::ChosenInlineResult;pub use inline::InlineQuery;pub use inline::InlineQueryResult;pub use keyboard::ForceReply;pub use keyboard::InlineKeyboardButton;pub use keyboard::InlineKeyboardMarkup;pub use keyboard::KeyboardButton;pub use keyboard::ReplyKeyboardMarkup;pub use keyboard::ReplyKeyboardRemove;pub use message::Message;pub use message::MessageEntity;pub use message::MessageEntityKind;pub use message::MessageOrigin;pub use message::ReactionType;pub use message::ReplyParameters;pub use payments::LabeledPrice;pub use payments::OrderInfo;pub use payments::PreCheckoutQuery;pub use payments::ShippingAddress;pub use payments::ShippingOption;pub use payments::ShippingQuery;pub use poll::InputPollOption;pub use poll::Poll;pub use poll::PollAnswer;pub use poll::PollOption;pub use sticker::MaskPosition;pub use sticker::Sticker;pub use sticker::StickerSet;pub use sticker::StickerType;pub use update::CallbackQuery;pub use update::Update;pub use update::UpdateKind;pub use user::User;pub use user::UserProfilePhotos;pub use webhook::WebhookInfo;
Modules§
- chat
- Chat and location types.
- chat_
member - Chat member status types.
- file
- File and media types.
- forum
- Forum topic types.
- games
- Game types.
- gifts
- Gift types.
- inline
- Inline query and result types.
- keyboard
- Keyboard and markup types.
- message
- Message and entity types.
- passport
- Telegram Passport types.
- payments
- Payment and invoice types.
- poll
- Poll types.
- reaction
- Reaction types.
- sticker
- Sticker types.
- story
- Story types.
- update
- Update and event types.
- user
- User and bot command types.
- webhook
- Webhook info types.