Module telegram_types::bot::types[][src]

Telegram bot object types.

Structs

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

Unique identifier for this chat.

ChatMember

This object contains information about one member of a chat.

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 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.

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.

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.

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.

PhotoSize

One size of a photo or a file / sticker thumbnail.

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.

Sticker
StickerSet

A sticker set.

Update

An incoming update.

User

A Telegram user or bot.

UserProfilePhotos

A user's profile pictures.

Venue
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

InlineKeyboardButtonPressed
InputMedia

The content of a media message to be sent.

MessageEntityKind

Type of the MessageEntity.

ParseMode

Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.

Type Definitions

Date