Module telegram_types::bot::types [−][src]
Telegram bot object types.
Structs
Animation | An animation file (GIF or H.264/MPEG-4 AVC video without sound). |
Audio | An audio file to be treated as music by the Telegram clients. |
CallbackQuery | This object represents an incoming callback query from a callback button in an inline keyboard. If the button that originated the query was attached to a message sent by the bot, the field message will be present. If the button was attached to a message sent via the bot (in inline mode), the field inline_message_id will be present. Exactly one of the fields data or game_short_name will be present. |
Chat | |
ChatId | |
ChatMember | This object contains information about one member of a chat. |
ChatMemberUpdated | |
ChatPhoto | |
Contact | A phone contact. |
Document | A general file (as opposed to photos, voice messages and audio files). |
File | A file ready to be downloaded.
The file can be downloaded via the link |
FileId | Unique identifier for a file |
ForceReply | Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot‘s message and tapped ’Reply’). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice privacy mode. |
InlineKeyboardButton | One button of an inline keyboard. |
InlineKeyboardMarkup | An inline keyboard that appears right next to the message it belongs to. |
InputFile | The contents of a file to be uploaded. |
KeyboardButton | One button of the reply keyboard. For simple text buttons String can be used instead of this object to specify text of the button. Optional fields are mutually exclusive. |
Location | A point on the map. |
LoginUrl | a parameter of the inline keyboard button used to automatically authorize a user. |
MaskPosition | The position on faces where a mask should be placed by default. |
Message | |
MessageEntity | One special entity in a text message. For example, hashtags, usernames, URLs, etc. |
MessageId | |
PhotoSize | |
Poll | |
PollAnswer | |
PreCheckoutQuery | |
ReplyKeyboardMarkup | A custom keyboard with reply options (see Introduction to bots for details and examples). |
ReplyKeyboardRemove | Upon receiving a message with this object, Telegram clients will remove the current custom keyboard and display the default letter-keyboard. |
ResponseParameters | Contains information about why a request was unsuccessful. |
ShippingQuery | |
Sticker | |
StickerSet | A sticker set. |
Time | The UNIX timestamp |
Update | An incoming update. |
UpdateId | |
User | A Telegram user or bot. |
UserId | |
UserProfilePhotos | A user’s profile pictures. |
Venue | |
Video | A video file. |
VideoNote | A video message (available in Telegram apps as of v.4.0). |
Voice | A voice note. |
WebhookInfo | Contains information about the current status of a webhook. |
Enums
ChatMemberStatus | The member’s status in the chat. |
ChatType | Type of chat |
FileToSend | There are three ways to send files |
InlineKeyboardButtonPressed | |
InputMedia | The content of a media message to be sent. |
MessageEntityKind | Type of the |
ParseMode | Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption. |
UpdateContent |