Expand description

This module contains types representing Telegram API objects.

Structs

This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).
This object represents a bot command.
A placeholder, currently holds no information. Use BotFather to set up your game.
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.
Caption for the animation, audio, document, photo, video or voice
This object represents a chat.
Represents a location to which a chat is connected.
This object represents a chat photo.
This object respresents an information about user from private chat
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 an incoming inline query. When the user sends an empty query, your bot could return some default or trending results.
This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed.
This object represents 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 web_app, request_contact, request_location, and request_poll are mutually exclusive.
This object represents a point on the map.
This object represents a parameter of the inline keyboard button used to automatically authorize a user. Serves as a great replacement for the Telegram Login Widget when the user is coming from Telegram. All the user needs to do is tap/click a button and confirm that they want to log in:
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. For example, hashtags, usernames, URLs, etc.
This object represents a unique message identifier.
This object represents one size of a photo or a file / sticker thumbnail.
This object contains information about a poll.
This object represents an answer of a user in a non-anonymous poll.
This object contains information about one answer option in a poll.
This object represents an incoming update. At most one of the optional parameters can be present in any given update.
This object represents a Telegram user or bot.
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.
Describes data sent from a Web App to the bot.
Describes a Web App.
Describes the current status of a webhook.

Enums

This object represents the scope to which bot commands are applied.
The chat id either an integer or a string
The kind of chat
This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed.
The action to be performed when a keyboard button is pressed.
The object representing message content
This object represents the kind of message entity, and its metadata.
The kind of poll
The update event can be taken from an Update.
The kind of event can be taken from an Update.