Module teloxide_core::types

source ·
Expand description

Telegram API types.

Structs

Administrator of the group. This struct is part of the ChatMemberKind enum.
This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).
This object represents an audio file to be treated as music by the Telegram clients.
User that was banned in the chat and can’t return to it or view chat messages. This struct is part of the ChatMemberKind enum.
This object represents a bot command.
A placeholder, currently holds no information.
This object represents an incoming callback query from a callback button in an inline keyboard.
This object represents a chat.
Represents the rights of an administrator in a chat.
Identifier of a chat.
Represents a join request sent to a chat.
Represents a location to which a chat is connected.
This object contains information about one member of the chat.
Describes actions that a non-administrator user is allowed to take in a chat.
This object represents a chat photo.
Represents a result of an inline query that was chosen by the user and sent to their chat partner.
This object represents a phone contact.
This object represents an animated emoji that displays a random value.
This object represents a general file (as opposed to photos, voice messages and audio files).
Contains data required for decrypting and authenticating EncryptedPassportElement.
Contains information about documents or other Telegram Passport elements shared with the bot by the user.
A type that is always false.
This object represents a file ready to be downloaded.
Metadata of 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 object represents a forum topic.
This object represents a service message about a forum topic closed in the chat. Currently holds no information.
This object represents a service message about a new forum topic created in the chat.
This object represents a service message about an edited forum topic.
This object represents a service message about a forum topic reopened in the chat. Currently holds no information.
Information about forwarded message.
This object represents a game.
This object represents one row of the high scores table for a game.
This object represents a service message about General forum topic hidden in the chat. Currently holds no information.
This object represents a service message about General forum topic unhidden in the chat. Currently holds no information.
This object represents one button of an inline keyboard.
This object represents an inline keyboard that appears right next to the message it belongs to.
This object represents an incoming inline query.
Represents a link to an article or web page.
Represents a link to an MP3 audio file. By default, this audio file will be sent by the user.
Represents a link to an MP3 audio file stored on the Telegram servers.
Represents a link to a file stored on the Telegram servers.
Represents a link to an animated GIF file stored on the Telegram servers.
Represents a link to a video animation (H.264/MPEG-4 AVC video without sound) stored on the Telegram servers.
Represents a link to a photo stored on the Telegram servers.
Represents a link to a sticker stored on the Telegram servers.
Represents a link to a video file stored on the Telegram servers.
Represents a link to a voice message stored on the Telegram servers.
Represents a contact with a phone number.
Represents a link to a file.
Represents a link to an animated GIF file.
Represents a location on a map.
Represents a link to a video animation (H.264/MPEG-4 AVC video without sound).
Represents a link to a photo.
Represents a venue.
Represents a link to a page containing an embedded video player or a video file.
Represents a link to a voice recording in an .ogg container encoded with OPUS.
This object represents the contents of a file to be uploaded.
Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.
Represents an audio file to be treated as music to be sent.
Represents a general file to be sent.
Represents a photo to be sent.
Represents a video to be sent.
Represents the content of a contact message to be sent as the result of an inline query.
Represents the content of an invoice message to be sent as the result of an inline query.
Represents the content of a location message to be sent as the result of an inline query.
Represents the content of a text message to be sent as the result of an inline query.
Represents the content of a venue message to be sent as the result of an inline query.
This object contains basic information about an invoice.
This object represents one button of the reply keyboard.
This object represents 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.
This object represents a portion of the price for goods or services.
This object represents a point on the map.
This object represents a parameter of the inline keyboard button used to automatically authorize a user.
This object describes the position on faces where a mask should be placed by default.
Returned only in GetMe.
This object represents a message.
This object represents a service message about a change in auto-delete timer settings.
This object represents one special entity in a text message.
A unique message identifier.
This object represents information about an order.
Owner of the group. This struct is part of the ChatMemberKind enum.
Contains information about Telegram Passport data shared with the bot by the user.
This object represents an error in the Telegram Passport element which was submitted that should be resolved by the user.
Represents an issue in one of the data fields that was provided by the user.
Represents an issue with a document scan.
Represents an issue with a list of scans.
Represents an issue with the front side of a document.
Represents an issue with the reverse side of a document.
The error is considered resolved when the file with the selfie changes.
Represents an issue with one of the files that constitute the translation of a document.
Represents an issue with the translated version of a document.
Represents an issue in an unspecified place.
This object represents a file uploaded to Telegram Passport.
This object represents one size of a photo or a file/sticker thumbnail.
This object contains information about a poll.
This object contains information about one answer option in a poll.
This object contains information about an incoming pre-checkout query.
This object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user.
User, restricted in the group. This struct is part of the ChatMemberKind enum.
Contains information about an inline message sent by a Web App on behalf of a user.
This object represents a shipping address.
This object represents one shipping option.
This object contains information about an incoming shipping query.
This object represents a sticker.
This object represents a sticker set.
This object contains basic information about a successful payment.
A type that is always true.
This object represents an incoming update.
This object represents a Telegram user or bot.
Identifier of a user.
This object represent a user’s profile pictures.
This object represents a venue.
This object represents a video file.
This object represents a service message about a video chat ended in the chat.
This object represents a service message about new members invited to a video chat.
This object represents a service message about a video chat scheduled in the chat.
This object represents a service message about a video chat started in the chat. Currently holds no information.
This object represents a video message (available in Telegram apps as of [v.4.0]).
This object represents a voice note.
Contains data sent from a Web App to the bot.
Contains information about a Web App.
Contains information about the current status of a webhook.
This object represents a service message about a user allowing a bot added to the attachment menu to write messages. Currently holds no information.

Enums

This object represents the scope to which bot commands are applied.
Request something from user, when a button is pressed.
Represents group migration to a supergroup or a supergroup migration from a group.
Type of the chat, from which the inline query was sent.
ISO 3166-1 alpha-2 language code.
ISO 4217 currency.
The entity that sent the original message that later was forwarded.
This object represents one result of an inline query.
This object represents the content of a media message to be sent.
This object represents the content of a message to be sent as a result of an inline query.
Sticker file that may be uploaded to telegram.
This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed.
The part of the face relative to which the mask should be placed.
This object describes the bot’s menu button in a private chat.
Formatting options.
A unique identifier for the target chat or username of the target channel (in the format @channelusername).
Contains information about why a request was unsuccessful.
Format of a Sticker - regular/webp, animated/tgs or video/webm.
Kind of a Sticker - regular, mask or custom emoji.
Type of a Sticker - regular, mask or custom emoji.
A message in chat or inline message.
A range of time, before some date (for example a time before a restrictions will be lifted from a member of a chat).