Expand description
Telegram API types.
Structs§
- Accepted
Gift Types - This object describes the types of gifts that can be gifted to a user or a chat.
- Administrator
- Administrator of the group. This struct is part of the
ChatMemberKindenum. - Affiliate
Info - Contains information about the affiliate that received a commission via this transaction.
- Animation
- This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).
- Area
Position - Position of a rectangular area on story media or a TON wallet card.
- Argb
- ARGB color format
- Audio
- This object represents an audio file to be treated as music by the Telegram clients.
- Background
Fill Freeform Gradient - The background is a freeform gradient that rotates after every message in the chat.
- Background
Fill Gradient - The background is a gradient fill.
- Background
Fill Solid - The background is filled using the selected color.
- Background
Type Chat Theme - The background is taken directly from a built-in chat theme.
- Background
Type Fill - The background is automatically filled based on the selected colors.
- Background
Type Pattern - The background is a PNG or TGV (gzipped subset of SVG with MIME type “application/x-tgwallpattern”) pattern to be combined with the background fill chosen by the user.
- Background
Type Wallpaper - The background is a wallpaper in the JPEG format.
- Banned
- User that was banned in the chat and can’t return to it or view chat
messages. This struct is part of the
ChatMemberKindenum. - Birthdate
- Describes the birthdate of a user.
- BoostId
- Unique identifier of the boost
- BotAccess
Settings - This object describes the access settings of a managed bot.
- BotCommand
- This object represents a bot command.
- BotDescription
- BotFull
Info - Full information about the bot itself, returned by
GetMe. - BotName
- BotShort
Description - BotSubscription
Updated - Describes a change in a bot subscription.
- Business
BotRights - Represents the rights of a business bot.
- Business
Connection - Describes the connection of the bot with a business account.
- Business
Connection Id - A unique business connection identifier.
- Business
Intro - An introduction for a Business.
- Business
Location - Details about the location of a Business
- Business
Messages Deleted - This object is received when messages are deleted from a connected business account.
- Business
Opening Hours - Details about the opening hours of a Business.
- Business
Opening Hours Interval - Time intervals used to describe the opening hours of a Business.
- Callback
Game - A placeholder, currently holds no information.
- Callback
Query - This object represents an incoming callback query from a callback button in an inline keyboard or rich message.
- Callback
Query Id - A unique identifier for this query.
- Chat
- This object represents a chat.
- Chat
Administrator Rights - Represents the rights of an administrator in a chat.
- Chat
Background - This object represents a chat background.
- Chat
Boost - This object contains information about a chat boost.
- Chat
Boost Added - This object represents a service message about a user boosting a chat.
- Chat
Boost Removed - This object represents a boost removed from a chat.
- Chat
Boost Source Gift Code - The boost was obtained by the creation of Telegram Premium gift codes to boost a chat. Each such code boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription.
- Chat
Boost Source Giveaway - The boost was obtained by the creation of a Telegram Premium giveaway. This boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription.
- Chat
Boost Source Premium - The boost was obtained by subscribing to Telegram Premium or by gifting a Telegram Premium subscription to another user.
- Chat
Boost Updated - This object represents a boost added to a chat or changed.
- Chat
Full Info - This object contains full information about a chat.
- Chat
Full Info Private - Chat
Full Info Public - Chat
Full Info Public Channel - Chat
Full Info Public Group - Chat
Full Info Public Supergroup - ChatId
- Identifier of a chat.
- Chat
Invite Link - Chat
Join Request - Represents a join request sent to a chat.
- Chat
Location - Represents a location to which a chat is connected.
- Chat
Member - This object contains information about one member of the chat.
- Chat
Member Updated - This object represents changes in the status of a chat member.
- Chat
Owner Changed - Describes a service message about an ownership change in the chat.
- Chat
Owner Left - Describes a service message about the chat owner leaving the chat.
- Chat
Permissions - Describes actions that a non-administrator user is allowed to take in a chat.
- Chat
Photo - This object represents a chat photo.
- Chat
Private - Chat
Public - Chat
Share Theme Backdrop - A backdrop used as the background of a chat share theme.
- Chat
Share Theme Backdrop Id - Unique identifier of a chat share theme backdrop.
- Chat
Share Theme Backdrops - Available backdrops for chat share themes.
- Chat
Share Theme Emoji - A chat share theme based on emoji placed on a background.
- Chat
Share Theme Unique Gift - A chat share theme based on a unique gift owned by the user or chat.
- Chat
Shared - Information about a chat that was shared with the bot using a
KeyboardButtonRequestChatbutton. - Checklist
- Describes a checklist.
- Checklist
Task - Describes a task in a checklist.
- Checklist
Task Id - Unique identifier of the task.
- Checklist
Tasks Added - Describes a service message about tasks added to a checklist.
- Checklist
Tasks Done - Describes a service message about checklist tasks marked as done or not done.
- Chosen
Inline Result - Represents a result of an inline query that was chosen by the user and sent to their chat partner.
- Community
- A Telegram community.
- Community
Chat Added - Describes a community chat added to a community.
- Community
Chat Joined - Describes a community chat joined by the user.
- Community
Chat Removed - Describes a community chat removed from a community.
- Contact
- This object represents a phone contact.
- Copy
Text Button - This object represents an inline keyboard button that copies specified text to the clipboard.
- Custom
Emoji Id - Custom emoji identifier.
- Dice
- This object represents an animated emoji that displays a random value.
- Direct
Message Price Changed - Describes a service message about a change in the price of direct messages sent to a channel chat.
- Direct
Messages Topic - Describes a topic of a direct messages chat.
- Disabled
Button - Represents a disabled button.
- Document
- This object represents a general file (as opposed to photos, voice messages and audio files).
- Effect
Id - Unique identifier of the message effect added to the message
- Emoji
Type Custom Emoji - A custom emoji.
- Emoji
Type Emoji - A regular emoji.
- Encrypted
Credentials - Contains data required for decrypting and authenticating
EncryptedPassportElement. - Encrypted
Passport Element - Contains information about documents or other Telegram Passport elements shared with the bot by the user.
- Encrypted
Passport Element Address - Encrypted
Passport Element Bank Statement - Encrypted
Passport Element Driver License - Encrypted
Passport Element Email - Encrypted
Passport Element Identity Card - Encrypted
Passport Element Internal Passport - Encrypted
Passport Element Passport - Encrypted
Passport Element Passport Registration - Encrypted
Passport Element Personal Details - Encrypted
Passport Element Phone Number - Encrypted
Passport Element Rental Agreement - Encrypted
Passport Element Temporary Registration - Encrypted
Passport Element Utility Bill - Ephemeral
Message Parameters - Parameters describing an ephemeral message recipient and callback behavior.
- External
Reply Info - This object contains information about a message that is being replied to, which may come from another chat or forum topic.
- False
- A type that is always false.
- File
- This object represents a file ready to be downloaded.
- FileId
- Identifier for a file
- File
Meta - Metadata of a
File. - File
Unique Id - Unique identifier for a file, which is supposed to be the same over time and for different bots. Can’t be used to download or reuse the file.
- Force
Reply - 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’).
- Forum
Topic - This object represents a forum topic.
- Forum
Topic Closed - This object represents a service message about a forum topic closed in the chat. Currently holds no information.
- Forum
Topic Created - This object represents a service message about a new forum topic created in the chat.
- Forum
Topic Edited - This object represents a service message about an edited forum topic.
- Forum
Topic Reopened - This object represents a service message about a forum topic reopened in the chat. Currently holds no information.
- Game
- This object represents a game.
- Game
High Score - This object represents one row of the high scores table for a game.
- General
Forum Topic Hidden - This object represents a service message about General forum topic hidden in the chat. Currently holds no information.
- General
Forum Topic Unhidden - This object represents a service message about General forum topic unhidden in the chat. Currently holds no information.
- Gift
- This object represents a gift that can be sent by the bot.
- Gift
Background - This object describes the background of a gift.
- GiftId
- A unique identifier of the gift.
- Gift
Info - Describes a service message about a regular gift that was sent or received.
- Gifts
- This object represent a list of gifts.
- Giveaway
- This object represents a message about a scheduled giveaway.
- Giveaway
Completed - This object represents a service message about the completion of a giveaway without public winners.
- Giveaway
Created - This object represents a service message about the creation of a scheduled giveaway.
- Giveaway
Winners - This object represents a message about the completion of a giveaway with public winners.
- Inaccessible
Message - This object describes a message that was deleted or is otherwise inaccessible to the bot.
- Inline
Keyboard Button - This object represents one button of an inline keyboard.
- Inline
Keyboard Markup - This object represents an inline keyboard that appears right next to the message it belongs to.
- Inline
Query - This object represents an incoming inline query.
- Inline
Query Id - Unique query identifier.
- Inline
Query Result Article - Represents a link to an article or web page.
- Inline
Query Result Audio - Represents a link to an MP3 audio file. By default, this audio file will be sent by the user.
- Inline
Query Result Cached Audio - Represents a link to an MP3 audio file stored on the Telegram servers.
- Inline
Query Result Cached Document - Represents a link to a file stored on the Telegram servers.
- Inline
Query Result Cached Gif - Represents a link to an animated GIF file stored on the Telegram servers.
- Inline
Query Result Cached Mpeg4 Gif - Represents a link to a video animation (H.264/MPEG-4 AVC video without sound) stored on the Telegram servers.
- Inline
Query Result Cached Photo - Represents a link to a photo stored on the Telegram servers.
- Inline
Query Result Cached Sticker - Represents a link to a sticker stored on the Telegram servers.
- Inline
Query Result Cached Video - Represents a link to a video file stored on the Telegram servers.
- Inline
Query Result Cached Voice - Represents a link to a voice message stored on the Telegram servers.
- Inline
Query Result Contact - Represents a contact with a phone number.
- Inline
Query Result Document - Represents a link to a file.
- Inline
Query Result Game - Represents a game.
- Inline
Query Result Gif - Represents a link to an animated GIF file.
- Inline
Query Result Location - Represents a location on a map.
- Inline
Query Result Mpeg4 Gif - Represents a link to a video animation (H.264/MPEG-4 AVC video without sound).
- Inline
Query Result Photo - Represents a link to a photo.
- Inline
Query Result Venue - Represents a venue.
- Inline
Query Result Video - Represents a link to a page containing an embedded video player or a video file.
- Inline
Query Result Voice - Represents a link to a voice recording in an .ogg container encoded with OPUS.
- Inline
Query Results Button - This object represents a button to be shown above inline query results. You must use exactly one of the optional fields.
- Input
Checklist - Describes a checklist to create.
- Input
Checklist Task - Describes a task to add to a checklist.
- Input
File - This object represents the contents of a file to be uploaded.
- Input
Media Animation - Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.
- Input
Media Audio - Represents an audio file to be treated as music to be sent.
- Input
Media Document - Represents a general file to be sent.
- Input
Media Link - Represents an HTTP link to be sent in a poll option.
- Input
Media Live Photo - Represents a live photo to be sent.
- Input
Media Location - Represents a location to be sent in a poll.
- Input
Media Photo - Represents a photo to be sent.
- Input
Media Sticker - Represents a sticker to be sent in a poll.
- Input
Media Venue - Represents a venue to be sent in a poll.
- Input
Media Video - Represents a video to be sent.
- Input
Media Voice Note - Represents a voice note to be sent.
- Input
Message Content Contact - Represents the content of a contact message to be sent as the result of an inline query.
- Input
Message Content Invoice - Represents the content of an invoice message to be sent as the result of an inline query.
- Input
Message Content Location - Represents the content of a location message to be sent as the result of an inline query.
- Input
Message Content Rich Message - Represents the content of a rich message to be sent as the result of an inline query.
- Input
Message Content Text - Represents the content of a text message to be sent as the result of an inline query.
- Input
Message Content Venue - Represents the content of a venue message to be sent as the result of an inline query.
- Input
Paid Media Live Photo - The paid media to send is a live photo.
- Input
Paid Media Photo - The paid media to send is a photo.
- Input
Paid Media Video - The paid media to send is a video.
- Input
Poll Option - This object contains information about one answer option in a poll to send.
- Input
Profile Photo Animated - An animated profile photo in the MPEG4 format.
- Input
Profile Photo Static - A static profile photo in the .JPG format.
- Input
Rich Block Anchor - Input
Rich Block Animation - Input
Rich Block Audio - Input
Rich Block Block Quotation - Input
Rich Block Buttons - A row of buttons in a rich formatted message.
- Input
Rich Block Collage - Input
Rich Block Details - Input
Rich Block Divider - Input
Rich Block Document - Input
Rich Block Expandable Block Quotation - An expandable block quotation.
- Input
Rich Block Footer - Input
Rich Block List - Input
Rich Block List Item - An item of a rich-message list.
- Input
Rich Block Map - Input
Rich Block Mathematical Expression - Input
Rich Block Paragraph - Input
Rich Block Photo - Input
Rich Block Preformatted - Input
Rich Block Pull Quotation - Input
Rich Block Section Heading - Input
Rich Block Slideshow - Input
Rich Block Table - Input
Rich Block Thinking - Input
Rich Block Video - Input
Rich Block Voice Note - Input
Rich Message - Describes a rich message to be sent.
- Input
Rich Message Media - Media available to blocks in an
InputRichMessage. - Input
Shared Widget Message Content - Content of an inline message with an existing shared widget. Telegram does not currently allow widgets in production inline results.
- Input
Sticker - This object describes a sticker to be added to a sticker set.
- Input
Story Content Photo - Describes a regular gift owned by a user or a chat.
- Input
Story Content Video - Describes a unique gift received and owned by a user or a chat.
- Input
Widget Message Content - Content of an inline message with a new HTML widget. Telegram does not currently allow widgets in production inline results.
- Invoice
- This object contains basic information about an invoice.
- Keyboard
Button - This object represents one button of the reply keyboard.
- Keyboard
Button Request Chat - This object defines the criteria used to request a suitable chat.
- Keyboard
Button Request Managed Bot - This object defines the criteria used to request a managed bot.
- Keyboard
Button Request Users - This object defines the criteria used to request a suitable users.
- Keyboard
Markup - This object represents a custom keyboard with reply options (see Introduction to bots for details and examples).
- Keyboard
Remove - Upon receiving a message with this object, Telegram clients will remove the current custom keyboard and display the default letter-keyboard.
- Labeled
Price - This object represents a portion of the price for goods or services.
- Link
- Represents an HTTP link.
- Link
Preview Options - Describes the options used for link preview generation.
- Live
Photo - This object represents a live photo.
- Location
- This object represents a point on the map.
- Location
Address - Describes the physical address of a location.
- Login
Url - This object represents a parameter of the inline keyboard button used to automatically authorize a user.
- Managed
BotCreated - This object represents a managed bot that was created.
- Managed
BotUpdated - This object represents an update to a managed bot.
- Mask
Position - This object describes the position on faces where a mask should be placed by default.
- Media
Animation - Media
Audio - Media
Checklist - Media
Contact - Media
Document - Media
Game - Media
Group Id - The unique identifier of a media message group the message belongs to.
- Media
Live Photo - Media
Location - Media
Paid - Media
Photo - Media
Poll - Media
Rich Message - Media
Sticker - Media
Story - Media
Text - Media
Venue - Media
Video - Media
Video Note - Media
Voice - Media
Widget - A message with an HTML widget and optional caption.
- Member
- Represents a chat member that has no additional privileges or restrictions.
This struct is part of the
ChatMemberKindenum. - 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
Channel Chat Created - Message
Chat Background - Message
Chat Boost Added - Message
Chat Owner Changed - Message
Chat Owner Left - Message
Chat Shared - Message
Checklist Tasks Added - Message
Checklist Tasks Done - Message
Common - Message
Community Chat Added - Message
Community Chat Joined - Message
Community Chat Removed - Message
Connected Website - Message
Delete Chat Photo - Message
Dice - Message
Direct Message Price Changed - Message
Entity - This object represents one special entity in a text message.
- Message
Entity Ref - A “parsed”
MessageEntity. - Message
Forum Topic Closed - Message
Forum Topic Created - Message
Forum Topic Edited - Message
Forum Topic Reopened - Message
General Forum Topic Hidden - Message
General Forum Topic Unhidden - Message
Generation Stopped - Describes a message generation that was stopped.
- Message
Gift Info - Message
Gift Upgrade Sent - Message
Giveaway - Message
Giveaway Completed - Message
Giveaway Created - Message
Giveaway Winners - Message
Group Chat Created - Message
Id - A unique message identifier.
- Message
Invoice - Message
Left Chat Member - Message
Managed BotCreated - Message
Message Auto Delete Timer Changed - Message
NewChat Members - Message
NewChat Photo - Message
NewChat Title - Message
Paid Message Price Changed - Message
Paid Messages Waived - A service message indicating message fees were waived.
- Message
Passport Data - Message
Pinned - Message
Poll Option Added - Message
Poll Option Deleted - Message
Proximity Alert Triggered - Message
Reaction Count Updated - This object represents reaction changes on a message with anonymous reactions.
- Message
Reaction Updated - This object represents a change of a reaction on a message performed by a user.
- Message
Refunded Payment - Message
Successful Payment - Message
Suggested Post Approval Failed - Message
Suggested Post Approved - Message
Suggested Post Declined - Message
Suggested Post Paid - Message
Suggested Post Refunded - Message
Supergroup Chat Created - Message
TonWallet Transfer - A service message about a TON wallet transfer.
- Message
Unique Gift Info - Message
Users Shared - Message
Video Chat Ended - Message
Video Chat Participants Invited - Message
Video Chat Scheduled - Message
Video Chat Started - Message
WebApp Data - Message
Write Access Allowed - Order
Info - This object represents information about an order.
- Owned
Gift Id - A unique incremental identifier of the owned gift provided by TBA.
- Owned
Gift Regular - Describes a regular gift owned by a user or a chat.
- Owned
Gift Unique - Describes a unique gift received and owned by a user or a chat.
- Owned
Gifts - Contains the list of gifts received and owned by a user or a chat.
- Owner
- Owner of the group. This struct is part of the
ChatMemberKindenum. - Paid
Media Info - Describes the paid media added to a message.
- Paid
Media Live Photo - The paid media is a live photo.
- Paid
Media Photo - The paid media is a photo.
- Paid
Media Preview - The paid media isn’t available before the payment.
- Paid
Media Purchased - Describes the information about a paid media purchase.
- Paid
Media Video - The paid media is a video.
- Paid
Message Price Changed - Describes a service message about a change in the price of paid messages within a chat.
- Paid
Messages Waived - A service message indicating that a user used a link allowing them to send messages without paying Telegram Stars.
- Passport
Data - Contains information about Telegram Passport data shared with the bot by the user.
- Passport
Element Error - This object represents an error in the Telegram Passport element which was submitted that should be resolved by the user.
- Passport
Element Error Data Field - Represents an issue in one of the data fields that was provided by the user.
- Passport
Element Error File - Represents an issue with a document scan.
- Passport
Element Error Files - Represents an issue with a list of scans.
- Passport
Element Error Front Side - Represents an issue with the front side of a document.
- Passport
Element Error Reverse Side - Represents an issue with the reverse side of a document.
- Passport
Element Error Selfie - Represents an issue with the selfie with a document.
- Passport
Element Error Translation File - Represents an issue with one of the files that constitute the translation of a document.
- Passport
Element Error Translation Files - Represents an issue with the translated version of a document.
- Passport
Element Error Unspecified - Represents an issue in an unspecified place.
- Passport
File - This object represents a file uploaded to Telegram Passport.
- Percentage
- Percentage from 0 to 100
- 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 - PollId
- Unique poll identifier.
- Poll
Media - This object describes media attached to a poll.
- Poll
Option - This object contains information about one answer option in a poll.
- Poll
Option Added - This object represents a poll option that was added.
- Poll
Option Deleted - This object represents a poll option that was deleted.
- PreCheckout
Query - This object contains information about an incoming pre-checkout query.
- PreCheckout
Query Id - Unique query identifier.
- Prepared
Inline Message - Describes an inline message to be sent by a user of a Mini App.
- Prepared
Keyboard Button - Describes a keyboard button prepared for a Mini App.
- Proximity
Alert Triggered - This object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user.
- Public
Chat Channel - Public
Chat Supergroup - Reaction
Count - Represents a reaction added to a message along with the number of times it was added.
- Refunded
Payment - This object contains basic information about a refunded payment.
- Reply
Parameters - Describes reply parameters for the message that is being sent.
- Request
Id - Restricted
- User, restricted in the group. This struct is part of the
ChatMemberKindenum. - Revenue
Withdrawal State Succeeded - The withdrawal succeeded.
- Rgb
- RGB color format
- Rich
Block Anchor - Corresponds to
<a name="...">. - Rich
Block Animation - Corresponds to
<video>. - Rich
Block Audio - Corresponds to
<audio>. - Rich
Block Block Quotation - Corresponds to
<blockquote>. - Rich
Block Buttons - A row of buttons in a rich formatted message.
- Rich
Block Caption - Caption of a rich formatted block.
- Rich
Block Collage - Corresponds to
<tg-collage>. - Rich
Block Details - Corresponds to
<details>. - Rich
Block Divider - Corresponds to HTML
<hr/>. - Rich
Block Document - A block with a general file.
- Rich
Block Expandable Block Quotation - Corresponds to
<blockquote expandable>. - Rich
Block Footer - Corresponds to HTML
<footer>. - Rich
Block List - Corresponds to
<ul>/<ol>with<li>. - Rich
Block List Item - An item of a list.
- Rich
Block Map - Corresponds to
<tg-map>. - Rich
Block Mathematical Expression - Corresponds to
<tg-math-block>. - Rich
Block Paragraph - Corresponds to HTML
<p>. - Rich
Block Photo - Corresponds to
<photo>. - Rich
Block Preformatted - Corresponds to nested
<pre>/<code>. - Rich
Block Pull Quotation - Loosely corresponds to
<aside>. - Rich
Block Section Heading - Corresponds to HTML
<h1>-<h6>. - Rich
Block Slideshow - Corresponds to
<tg-slideshow>. - Rich
Block Table - Corresponds to
<table>. - Rich
Block Table Cell - A cell in a table.
- Rich
Block Thinking - Corresponds to custom
<tg-thinking>. - Rich
Block Video - Corresponds to
<video>. - Rich
Block Voice Note - Corresponds to
<audio>. - Rich
Message - Rich formatted message.
- Rich
Message Button - A button in a rich formatted message.
- Rich
Text Anchor - An anchor.
- Rich
Text Anchor Link - A link to an anchor.
- Rich
Text Bank Card Number - A text with a bank card number.
- Rich
Text Bold - A bold text.
- Rich
Text BotCommand - A bot command.
- Rich
Text Button - A button embedded in rich text.
- Rich
Text Cashtag - A cashtag.
- Rich
Text Code - A monowidth text.
- Rich
Text Custom Emoji - A custom emoji.
- Rich
Text Date Time - Formatted date and time.
- Rich
Text Email Address - A text with an email address.
- Rich
Text Hashtag - A hashtag.
- Rich
Text Italic - An italicized text.
- Rich
Text Marked - A marked text.
- Rich
Text Mathematical Expression - A mathematical expression.
- Rich
Text Mention - A mention by a username.
- Rich
Text Phone Number - A text with a phone number.
- Rich
Text Reference - A reference.
- Rich
Text Reference Link - A link to a reference.
- Rich
Text Spoiler - A text covered by a spoiler.
- Rich
Text Strikethrough - A strikethrough text.
- Rich
Text Subscript - A subscript text.
- Rich
Text Superscript - A superscript text.
- Rich
Text Text Mention - A mention of a Telegram user by their identifier.
- Rich
Text TonAddress - An address in the TON blockchain.
- Rich
Text Underline - An underlined text.
- Rich
Text Url - A text with a link.
- Seconds
- A wrapper around
u32which represents duration in seconds. - Sent
Guest Message - This object contains information about a guest message sent by the bot.
- Sent
WebApp Message - Contains information about an inline message sent by a Web App on behalf of a user.
- Shared
User - This object contains information about a user that was shared with the bot
using a
KeyboardButtonRequestUsersbutton. - Shared
Widget Query - A query from a forwarded message containing a shared widget created by the bot.
- Shipping
Address - This object represents a shipping address.
- Shipping
Option - This object represents one shipping option.
- Shipping
Query - This object contains information about an incoming shipping query.
- Shipping
Query Id - Unique query identifier.
- Star
Amount - Describes an amount of Telegram Stars.
- Star
Transaction - Describes a Telegram Star transaction.
- Star
Transactions - Contains a list of Telegram Star transactions.
- Sticker
- This object represents a sticker.
- Sticker
Format Flags - Sticker
Set - This object represents a sticker set.
- Story
- This object represents a story.
- Story
Area - Describes a clickable area on a story media.
- Story
Area Type Link - Describes a story area pointing to an HTTP or tg:// link. Currently, a story can have up to 3 link areas.
- Story
Area Type Location - Describes a story area pointing to a location. Currently, a story can have up to 10 location areas.
- Story
Area Type Suggested Reaction - Describes a story area pointing to a suggested reaction. Currently, a story can have up to 5 suggested reaction areas.
- Story
Area Type Unique Gift - Describes a story area pointing to a unique gift. Currently, a story can have at most 1 unique gift area.
- Story
Area Type Weather - Describes a story area containing weather information. Currently, a story can have up to 3 weather areas.
- StoryId
- Identifier of a story.
- Successful
Payment - This object contains basic information about a successful payment.
- Suggested
Post Approval Failed - Describes a service message about the failed approval of a suggested post. Currently, only caused by insufficient user funds at the time of approval.
- Suggested
Post Approved - Describes a service message about the approval of a suggested post.
- Suggested
Post Declined - Describes a service message about the rejection of a suggested post.
- Suggested
Post Info - Contains information about a suggested post.
- Suggested
Post Paid - Describes a service message about the failed approval of a suggested post. Currently, only caused by insufficient user funds at the time of approval.
- Suggested
Post Parameters - Contains parameters of a post that is being suggested by the bot.
- Suggested
Post Price - Describes the price of a suggested post.
- Suggested
Post Refunded - Describes a service message about a payment refund for a suggested post.
- Switch
Inline Query Chosen Chat - This object represents an inline button that switches the current user to inline mode in a chosen chat, with an optional default inline query.
- Telegram
Transaction Id - A unique identifier of the Telegram transaction.
- Text
Quote - This object contains information about the quoted part of a message that is replied to by the given message.
- Thread
Id - Reply thread identifier.
- TonNft
- An NFT in the TON blockchain.
- TonNft
Attribute - An attribute of an NFT in the TON blockchain.
- TonWallet
Card - A TON wallet card displayed on a user’s profile.
- TonWallet
Card Sticker - An NFT sticker placed on a TON wallet card.
- TonWallet
Transfer - A service message about a transfer with a TON wallet.
- TopicId
- Unique identifier of the topic.
- Transaction
Partner Affiliate Program - Describes the affiliate program that issued the affiliate commission received via this transaction.
- Transaction
Partner Chat - Describes a transaction with a chat.
- Transaction
Partner Fragment - Describes a withdrawal transaction with Fragment.
- Transaction
Partner Telegram Api - Describes a transaction with payment for paid broadcasting.
- Transaction
Partner User - Describes a transaction with a user.
- Transaction
Partner User Gift Purchase - Transaction
Partner User Invoice Payment - Transaction
Partner User Paid Media Payment - Transaction
Partner User Premium Purchase - True
- A type that is always true.
- Unique
Gift - This object describes a unique gift that was upgraded from a regular gift.
- Unique
Gift Backdrop - This object describes the backdrop of a unique gift.
- Unique
Gift Backdrop Colors - This object describes the colors of the backdrop of a unique gift.
- Unique
Gift Colors - This object contains information about the color scheme for a user’s name, message replies and link previews based on a unique gift.
- Unique
Gift Info - Describes a service message about a unique gift that was sent or received.
- Unique
Gift Model - This object describes the model of a unique gift.
- Unique
Gift Symbol - This object describes the symbol shown on the pattern of a unique gift.
- Unsupported
Group Media - Error returned when an
InputMediacan’t be used in a media group. - Update
- This object represents an incoming update.
- Update
Id - An identifier of a telegram update.
- User
- This object represents a Telegram user or bot.
- User
Chat Boosts - This object represents a list of boosts added to a chat by a user.
- UserId
- Identifier of a user.
- User
Profile Audios - This object represents the audios displayed on a user’s profile.
- User
Profile Photos - This object represent a user’s profile pictures.
- User
Rating - This object describes the rating of a user based on their Telegram Star spendings.
- Users
Shared - This object contains information about the users whose identifiers were shared with the bot using a KeyboardButtonRequestUsers button.
- Venue
- This object represents a venue.
- Video
- This object represents a video file.
- 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 - This object represents a video message (available in Telegram apps as of [v.4.0]).
- Video
Quality - This object represents a video file of a specific quality.
- Voice
- This object represents a voice note.
- WebApp
Data - Contains data sent from a Web App to the bot.
- WebApp
Info - Contains information about a Web App.
- Webhook
Info - Contains information about the current status of a webhook.
- Widget
- An HTML widget in a message.
- Widget
Id - Unique identifier of a shared widget.
- Widget
Query - A query from a widget in a message sent by or via the bot.
- Widget
Query Id - Unique identifier of a widget query.
- Widget
Query Type Data - A query carrying widget data.
- Widget
Query Type Sent Transaction - A query reporting a transaction sent from the user’s TON wallet.
- Widget
Query Type Sign Data - A query carrying data signed for the domain
bot<bot_id>. - Widget
Query Wallet - A user’s TON wallet as reported in a widget query.
- Write
Access Allowed - This object represents a service message about a user allowing a bot to write messages after adding the bot to the attachment menu or launching a Web App from a link, or after being invited by the bot owner.
Enums§
- Allowed
Update - Background
Fill - This object describes the way a background is filled based on the selected colors.
- Background
Type - This object describes the type of a background.
- BotCommand
Scope - This object represents the scope to which bot commands are applied.
- BotSubscription
State - A subscription state reported by Telegram.
- Button
Request - Request something from user, when a button is pressed.
- Button
Style - Style of a keyboard button.
- Callback
Query Mode - How the bot receives callback queries from buttons in its own messages.
- Cell
Align - Horizontal alignment of a
RichBlockTableCell. - CellV
Align - Vertical alignment of a
RichBlockTableCell. - Chat
Action - Chat
Boost Source - This object describes the source of a chat boost.
- Chat
Full Info Kind - Chat
Full Info Public Kind - Chat
Join Request Query Result - Result of a chat join request query, used with
AnswerChatJoinRequestQuery. - Chat
Kind - Chat
Member Kind - Chat
Member Status - Chat
Migration - Represents group migration to a supergroup or a supergroup migration from a group.
- Chat
Share Theme - The theme shown when sharing a link to a user or chat.
- Chat
Type - Type of the chat, from which the inline query was sent.
- Country
Code - ISO 3166-1 alpha-2 language code.
- Dice
Emoji - Emoji
Type - A regular or custom emoji.
- Encrypted
Passport Element Kind - External
Reply Info Kind - Inline
Keyboard Button Kind - Inline
Query Result - This object represents one result of an inline query.
- Inline
Query Results Button Kind - Input
Group Media - Media that can be sent as a part of a media group (album) via
SendMediaGroup. - Input
Media - This object represents the content of a media message to be sent.
- Input
Message Content - This object represents the content of a message to be sent as a result of an inline query.
- Input
Paid Media - This object describes the paid media to be sent.
- Input
Poll Media - This object represents media to be sent with a poll.
- Input
Poll Option Formatting - Input
Poll Option Media - This object represents media to be sent with a poll option.
- Input
Profile Photo - This object describes a profile photo to set.
- Input
Rich Block - A block in a rich formatted message to be sent.
- Input
Rich Media - Media that can be embedded in an
InputRichMessageMedia. - Input
Story Content - This object describes the content of a story to post.
- 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.
- Live
Period - Period in seconds for which the location can be updated, should be between 60 and 86400, or 0x7FFFFFFF for live locations that can be edited indefinitely.
- Mask
Point - The part of the face relative to which the mask should be placed.
- Maybe
Anonymous User - Represents either
Useror anonymous user (Chat) that acts on behalf of the chat - Maybe
Inaccessible Message - This object describes a message that can be inaccessible to the bot. It can be one of:
- Media
Kind - Menu
Button - This object describes the bot’s menu button in a private chat.
- Message
Entity Kind - Message
Entity Parse Error - An invalid UTF-16 range in a Telegram message entity.
- Message
Kind - Message
Origin - This object describes the origin of a message
- Owned
Gift - This object describes a gift received and owned by a user or a chat.
- Paid
Media - This object describes paid media.
- Parse
Mode - Formatting options.
- Passport
Element Error Data Field Type - Passport
Element Error File Type - Passport
Element Error Files Type - Passport
Element Error Front Side Type - Passport
Element Error Kind - Passport
Element Error Reverse Side Type - Passport
Element Error Selfie Type - Passport
Element Error Translation File Type - Passport
Element Error Translation Files Type - Passport
Element Error Unspecified Type - Poll
Type - Public
Chat Kind - Reaction
Type - The reaction type is based on an emoji or custom emoji.
- Recipient
- A unique identifier for the target chat or username of the target channel
(in the format
@channelusername). - Reply
Markup - Response
Parameters - Contains information about why a request was unsuccessful.
- Revenue
Withdrawal State - This object describes the state of a revenue withdrawal operation.
- Rich
Block - A block in a rich formatted message.
- Rich
Text - Rich formatted text.
- Rich
Text Kind - The kind of a formatted
RichTextvalue. - Sticker
Format - Format of a
Sticker- regular/webp, animated/tgs or video/webm. - Sticker
Kind - Kind of a
Sticker- regular, mask or custom emoji. - Sticker
Type - Type of a
Sticker- regular, mask or custom emoji. - Story
Area Type - Describes the type of a clickable area on a story.
- Suggested
Post Refund Reason - Currently, one of PostDeleted if the post was deleted within 24 hours of being posted or removed from scheduled messages without being posted, or PaymentRefunded if the payer refunded their payment.
- Suggested
Post State - State of the suggested post
- Target
Message - A message in chat or inline message.
- Transaction
Partner - This object describes the source of a transaction, or its recipient for outgoing transactions.
- Transaction
Partner User Kind - Kind of the transaction.
InvoicePaymentfor payments via invoices,PaidMediaPaymentfor payments for paid media,GiftPurchasefor gifts sent by the bot,PremiumPurchasefor Telegram Premium subscriptions gifted by the bot,BusinessAccountTransferfor direct transfers from managed business accounts - Unique
Gift Origin - Origin of the gift. Currently, either
upgradefor gifts upgraded from regular gifts,transferfor gifts transferred from other users or channels,resalefor gifts bought from other users,gifted_upgradefor upgrades purchased after the gift was sent, orofferfor gifts bought or sold through gift purchase offers - Until
Date - A range of time, before some date (for example a time before a restrictions will be lifted from a member of a chat).
- Update
Kind - Widget
Query Chat Type - The type of chat that received an inline widget.
- Widget
Query Type - The type and type-specific data of a widget query.
Type Aliases§
- Me
- Former name for the response to
GetMe. - Story
Area Position - Former name of
AreaPosition.