Module telegram_types::bot::types
source · Expand description
Telegram bot object types.
Structs
An animation file (GIF or H.264/MPEG-4 AVC video without sound).
An audio file to be treated as music by the Telegram clients.
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.
This object contains information about one member of a chat.
A phone contact.
A file ready to be downloaded.
The file can be downloaded via the link
https://api.telegram.org/file/bot<token>/<file_path>
.
It is guaranteed that the link will be valid for at least 1 hour. When the link expires,
a new one can be requested by calling getFile
.Unique identifier for a file
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.
One button of an inline keyboard.
An inline keyboard that appears right next to the message it belongs to.
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.
A point on the map.
The position on faces where a mask should be placed by default.
One special entity in a text message.
For example, hashtags, usernames, URLs, etc.
A custom keyboard
with reply options (see Introduction to bots
for details and examples).
Upon receiving a message with this object, Telegram clients will remove the current
custom keyboard and display the default letter-keyboard.
Contains information about why a request was unsuccessful.
A sticker set.
The UNIX timestamp
An incoming update.
A Telegram user or bot.
A user’s profile pictures.
A video file.
A video message (available in Telegram apps as of v.4.0).
A voice note.
Contains information about the current status of a webhook.
Enums
The member’s status in the chat.
Type of chat
The content of a media message to be sent.
Type of the
MessageEntity
.Send Markdown or HTML, if you want Telegram apps to show
bold, italic, fixed-width text or inline URLs
in the media caption.