Expand description
This module contains types representing Telegram API objects.
Structs§
- Animation
- This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).
- Audio
- BotCommand
- This object represents a bot command.
- Callback
Game - A placeholder, currently holds no information. Use BotFather to set up your game.
- Callback
Query - 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
- Caption for the animation, audio, document, photo, video or voice
- Chat
- This object represents a chat.
- Chat
Join Request - Chat
Location - Represents a location to which a chat is connected.
- Chat
Member Updated - Chat
Permissions - Chat
Photo - This object represents a chat photo.
- Chat
User - This object respresents an information about user from private chat
- Chosen
Inline Result - Represents a result of an inline query that was chosen by the user and sent to their chat partner.
- Contact
- This object represents a phone contact.
- Dice
- This object represents an animated emoji that displays a random value.
- Document
- False
- Game
- Inline
Keyboard Markup - Inline
Query - This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results.
- Invoice
- Keyboard
Button Poll Type - This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed.
- Keyboardbutton
- 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.
- Location
- This object represents a point on the map.
- Login
Url - 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:
- Message
- This object represents a message.
- Message
Auto Delete Timer Changed - This object represents a service message about a change in auto-delete timer settings.
- Message
Entity - This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.
- Message
Id - This object represents a unique message identifier.
- Passport
Data - Photo
Size - This object represents one size of a photo or a file / sticker thumbnail.
- Poll
- This object contains information about a poll.
- Poll
Answer - This object represents an answer of a user in a non-anonymous poll.
- Poll
Option - This object contains information about one answer option in a poll.
- PreCheckout
Query - Proximity
Alert Triggered - Shipping
Query - Sticker
- Successful
Payment - True
- Update
- This object represents an incoming update. At most one of the optional parameters can be present in any given update.
- User
- This object represents a Telegram user or bot.
- Venue
- Video
- Video
Chat Ended - This object represents a service message about a video chat ended in the chat.
- Video
Chat Participants Invited - This object represents a service message about new members invited to a video chat.
- Video
Chat Scheduled - This object represents a service message about a video chat scheduled in the chat.
- Video
Chat Started - This object represents a service message about a video chat started in the chat. Currently holds no information.
- Video
Note - Voice
- WebApp
Data - Describes data sent from a Web App to the bot.
- WebApp
Info - Describes a Web App.
- Webhook
Info - Describes the current status of a webhook.
Enums§
- BotCommand
Scope - This object represents the scope to which bot commands are applied.
- ChatId
- The chat id either an integer or a string
- Chat
Kind - The kind of chat
- Keyboard
Button Poll Type Kind - This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed.
- Keyboardbutton
Action - The action to be performed when a keyboard button is pressed.
- Message
Content - The object representing message content
- Message
Entity Kind - This object represents the kind of message entity, and its metadata.
- Poll
Kind - The kind of poll
- Update
Event - The update event can be taken from an
Update. - Update
Kind - The kind of event can be taken from an
Update.