Skip to main content

Module types

Module types 

Source
Expand description

Telegram API types.

Structs§

AcceptedGiftTypes
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 ChatMemberKind enum.
AffiliateInfo
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).
AreaPosition
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.
BackgroundFillFreeformGradient
The background is a freeform gradient that rotates after every message in the chat.
BackgroundFillGradient
The background is a gradient fill.
BackgroundFillSolid
The background is filled using the selected color.
BackgroundTypeChatTheme
The background is taken directly from a built-in chat theme.
BackgroundTypeFill
The background is automatically filled based on the selected colors.
BackgroundTypePattern
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.
BackgroundTypeWallpaper
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 ChatMemberKind enum.
Birthdate
Describes the birthdate of a user.
BoostId
Unique identifier of the boost
BotAccessSettings
This object describes the access settings of a managed bot.
BotCommand
This object represents a bot command.
BotDescription
BotFullInfo
Full information about the bot itself, returned by GetMe.
BotName
BotShortDescription
BotSubscriptionUpdated
Describes a change in a bot subscription.
BusinessBotRights
Represents the rights of a business bot.
BusinessConnection
Describes the connection of the bot with a business account.
BusinessConnectionId
A unique business connection identifier.
BusinessIntro
An introduction for a Business.
BusinessLocation
Details about the location of a Business
BusinessMessagesDeleted
This object is received when messages are deleted from a connected business account.
BusinessOpeningHours
Details about the opening hours of a Business.
BusinessOpeningHoursInterval
Time intervals used to describe the opening hours of a Business.
CallbackGame
A placeholder, currently holds no information.
CallbackQuery
This object represents an incoming callback query from a callback button in an inline keyboard or rich message.
CallbackQueryId
A unique identifier for this query.
Chat
This object represents a chat.
ChatAdministratorRights
Represents the rights of an administrator in a chat.
ChatBackground
This object represents a chat background.
ChatBoost
This object contains information about a chat boost.
ChatBoostAdded
This object represents a service message about a user boosting a chat.
ChatBoostRemoved
This object represents a boost removed from a chat.
ChatBoostSourceGiftCode
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.
ChatBoostSourceGiveaway
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.
ChatBoostSourcePremium
The boost was obtained by subscribing to Telegram Premium or by gifting a Telegram Premium subscription to another user.
ChatBoostUpdated
This object represents a boost added to a chat or changed.
ChatFullInfo
This object contains full information about a chat.
ChatFullInfoPrivate
ChatFullInfoPublic
ChatFullInfoPublicChannel
ChatFullInfoPublicGroup
ChatFullInfoPublicSupergroup
ChatId
Identifier of a chat.
ChatInviteLink
ChatJoinRequest
Represents a join request sent to a chat.
ChatLocation
Represents a location to which a chat is connected.
ChatMember
This object contains information about one member of the chat.
ChatMemberUpdated
This object represents changes in the status of a chat member.
ChatOwnerChanged
Describes a service message about an ownership change in the chat.
ChatOwnerLeft
Describes a service message about the chat owner leaving the chat.
ChatPermissions
Describes actions that a non-administrator user is allowed to take in a chat.
ChatPhoto
This object represents a chat photo.
ChatPrivate
ChatPublic
ChatShareThemeBackdrop
A backdrop used as the background of a chat share theme.
ChatShareThemeBackdropId
Unique identifier of a chat share theme backdrop.
ChatShareThemeBackdrops
Available backdrops for chat share themes.
ChatShareThemeEmoji
A chat share theme based on emoji placed on a background.
ChatShareThemeUniqueGift
A chat share theme based on a unique gift owned by the user or chat.
ChatShared
Information about a chat that was shared with the bot using a KeyboardButtonRequestChat button.
Checklist
Describes a checklist.
ChecklistTask
Describes a task in a checklist.
ChecklistTaskId
Unique identifier of the task.
ChecklistTasksAdded
Describes a service message about tasks added to a checklist.
ChecklistTasksDone
Describes a service message about checklist tasks marked as done or not done.
ChosenInlineResult
Represents a result of an inline query that was chosen by the user and sent to their chat partner.
Community
A Telegram community.
CommunityChatAdded
Describes a community chat added to a community.
CommunityChatJoined
Describes a community chat joined by the user.
CommunityChatRemoved
Describes a community chat removed from a community.
Contact
This object represents a phone contact.
CopyTextButton
This object represents an inline keyboard button that copies specified text to the clipboard.
CustomEmojiId
Custom emoji identifier.
Dice
This object represents an animated emoji that displays a random value.
DirectMessagePriceChanged
Describes a service message about a change in the price of direct messages sent to a channel chat.
DirectMessagesTopic
Describes a topic of a direct messages chat.
DisabledButton
Represents a disabled button.
Document
This object represents a general file (as opposed to photos, voice messages and audio files).
EffectId
Unique identifier of the message effect added to the message
EmojiTypeCustomEmoji
A custom emoji.
EmojiTypeEmoji
A regular emoji.
EncryptedCredentials
Contains data required for decrypting and authenticating EncryptedPassportElement.
EncryptedPassportElement
Contains information about documents or other Telegram Passport elements shared with the bot by the user.
EncryptedPassportElementAddress
EncryptedPassportElementBankStatement
EncryptedPassportElementDriverLicense
EncryptedPassportElementEmail
EncryptedPassportElementIdentityCard
EncryptedPassportElementInternalPassport
EncryptedPassportElementPassport
EncryptedPassportElementPassportRegistration
EncryptedPassportElementPersonalDetails
EncryptedPassportElementPhoneNumber
EncryptedPassportElementRentalAgreement
EncryptedPassportElementTemporaryRegistration
EncryptedPassportElementUtilityBill
EphemeralMessageParameters
Parameters describing an ephemeral message recipient and callback behavior.
ExternalReplyInfo
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
FileMeta
Metadata of a File.
FileUniqueId
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.
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’).
ForumTopic
This object represents a forum topic.
ForumTopicClosed
This object represents a service message about a forum topic closed in the chat. Currently holds no information.
ForumTopicCreated
This object represents a service message about a new forum topic created in the chat.
ForumTopicEdited
This object represents a service message about an edited forum topic.
ForumTopicReopened
This object represents a service message about a forum topic reopened in the chat. Currently holds no information.
Game
This object represents a game.
GameHighScore
This object represents one row of the high scores table for a game.
GeneralForumTopicHidden
This object represents a service message about General forum topic hidden in the chat. Currently holds no information.
GeneralForumTopicUnhidden
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.
GiftBackground
This object describes the background of a gift.
GiftId
A unique identifier of the gift.
GiftInfo
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.
GiveawayCompleted
This object represents a service message about the completion of a giveaway without public winners.
GiveawayCreated
This object represents a service message about the creation of a scheduled giveaway.
GiveawayWinners
This object represents a message about the completion of a giveaway with public winners.
InaccessibleMessage
This object describes a message that was deleted or is otherwise inaccessible to the bot.
InlineKeyboardButton
This object represents one button of an inline keyboard.
InlineKeyboardMarkup
This object represents an inline keyboard that appears right next to the message it belongs to.
InlineQuery
This object represents an incoming inline query.
InlineQueryId
Unique query identifier.
InlineQueryResultArticle
Represents a link to an article or web page.
InlineQueryResultAudio
Represents a link to an MP3 audio file. By default, this audio file will be sent by the user.
InlineQueryResultCachedAudio
Represents a link to an MP3 audio file stored on the Telegram servers.
InlineQueryResultCachedDocument
Represents a link to a file stored on the Telegram servers.
InlineQueryResultCachedGif
Represents a link to an animated GIF file stored on the Telegram servers.
InlineQueryResultCachedMpeg4Gif
Represents a link to a video animation (H.264/MPEG-4 AVC video without sound) stored on the Telegram servers.
InlineQueryResultCachedPhoto
Represents a link to a photo stored on the Telegram servers.
InlineQueryResultCachedSticker
Represents a link to a sticker stored on the Telegram servers.
InlineQueryResultCachedVideo
Represents a link to a video file stored on the Telegram servers.
InlineQueryResultCachedVoice
Represents a link to a voice message stored on the Telegram servers.
InlineQueryResultContact
Represents a contact with a phone number.
InlineQueryResultDocument
Represents a link to a file.
InlineQueryResultGame
Represents a game.
InlineQueryResultGif
Represents a link to an animated GIF file.
InlineQueryResultLocation
Represents a location on a map.
InlineQueryResultMpeg4Gif
Represents a link to a video animation (H.264/MPEG-4 AVC video without sound).
InlineQueryResultPhoto
Represents a link to a photo.
InlineQueryResultVenue
Represents a venue.
InlineQueryResultVideo
Represents a link to a page containing an embedded video player or a video file.
InlineQueryResultVoice
Represents a link to a voice recording in an .ogg container encoded with OPUS.
InlineQueryResultsButton
This object represents a button to be shown above inline query results. You must use exactly one of the optional fields.
InputChecklist
Describes a checklist to create.
InputChecklistTask
Describes a task to add to a checklist.
InputFile
This object represents the contents of a file to be uploaded.
InputMediaAnimation
Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.
InputMediaAudio
Represents an audio file to be treated as music to be sent.
InputMediaDocument
Represents a general file to be sent.
InputMediaLink
Represents an HTTP link to be sent in a poll option.
InputMediaLivePhoto
Represents a live photo to be sent.
InputMediaLocation
Represents a location to be sent in a poll.
InputMediaPhoto
Represents a photo to be sent.
InputMediaSticker
Represents a sticker to be sent in a poll.
InputMediaVenue
Represents a venue to be sent in a poll.
InputMediaVideo
Represents a video to be sent.
InputMediaVoiceNote
Represents a voice note to be sent.
InputMessageContentContact
Represents the content of a contact message to be sent as the result of an inline query.
InputMessageContentInvoice
Represents the content of an invoice message to be sent as the result of an inline query.
InputMessageContentLocation
Represents the content of a location message to be sent as the result of an inline query.
InputMessageContentRichMessage
Represents the content of a rich message to be sent as the result of an inline query.
InputMessageContentText
Represents the content of a text message to be sent as the result of an inline query.
InputMessageContentVenue
Represents the content of a venue message to be sent as the result of an inline query.
InputPaidMediaLivePhoto
The paid media to send is a live photo.
InputPaidMediaPhoto
The paid media to send is a photo.
InputPaidMediaVideo
The paid media to send is a video.
InputPollOption
This object contains information about one answer option in a poll to send.
InputProfilePhotoAnimated
An animated profile photo in the MPEG4 format.
InputProfilePhotoStatic
A static profile photo in the .JPG format.
InputRichBlockAnchor
InputRichBlockAnimation
InputRichBlockAudio
InputRichBlockBlockQuotation
InputRichBlockButtons
A row of buttons in a rich formatted message.
InputRichBlockCollage
InputRichBlockDetails
InputRichBlockDivider
InputRichBlockDocument
InputRichBlockExpandableBlockQuotation
An expandable block quotation.
InputRichBlockFooter
InputRichBlockList
InputRichBlockListItem
An item of a rich-message list.
InputRichBlockMap
InputRichBlockMathematicalExpression
InputRichBlockParagraph
InputRichBlockPhoto
InputRichBlockPreformatted
InputRichBlockPullQuotation
InputRichBlockSectionHeading
InputRichBlockSlideshow
InputRichBlockTable
InputRichBlockThinking
InputRichBlockVideo
InputRichBlockVoiceNote
InputRichMessage
Describes a rich message to be sent.
InputRichMessageMedia
Media available to blocks in an InputRichMessage.
InputSharedWidgetMessageContent
Content of an inline message with an existing shared widget. Telegram does not currently allow widgets in production inline results.
InputSticker
This object describes a sticker to be added to a sticker set.
InputStoryContentPhoto
Describes a regular gift owned by a user or a chat.
InputStoryContentVideo
Describes a unique gift received and owned by a user or a chat.
InputWidgetMessageContent
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.
KeyboardButton
This object represents one button of the reply keyboard.
KeyboardButtonRequestChat
This object defines the criteria used to request a suitable chat.
KeyboardButtonRequestManagedBot
This object defines the criteria used to request a managed bot.
KeyboardButtonRequestUsers
This object defines the criteria used to request a suitable users.
KeyboardMarkup
This object represents a custom keyboard with reply options (see Introduction to bots for details and examples).
KeyboardRemove
Upon receiving a message with this object, Telegram clients will remove the current custom keyboard and display the default letter-keyboard.
LabeledPrice
This object represents a portion of the price for goods or services.
Link
Represents an HTTP link.
LinkPreviewOptions
Describes the options used for link preview generation.
LivePhoto
This object represents a live photo.
Location
This object represents a point on the map.
LocationAddress
Describes the physical address of a location.
LoginUrl
This object represents a parameter of the inline keyboard button used to automatically authorize a user.
ManagedBotCreated
This object represents a managed bot that was created.
ManagedBotUpdated
This object represents an update to a managed bot.
MaskPosition
This object describes the position on faces where a mask should be placed by default.
MediaAnimation
MediaAudio
MediaChecklist
MediaContact
MediaDocument
MediaGame
MediaGroupId
The unique identifier of a media message group the message belongs to.
MediaLivePhoto
MediaLocation
MediaPaid
MediaPhoto
MediaPoll
MediaRichMessage
MediaSticker
MediaStory
MediaText
MediaVenue
MediaVideo
MediaVideoNote
MediaVoice
MediaWidget
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 ChatMemberKind enum.
Message
This object represents a message.
MessageAutoDeleteTimerChanged
This object represents a service message about a change in auto-delete timer settings.
MessageChannelChatCreated
MessageChatBackground
MessageChatBoostAdded
MessageChatOwnerChanged
MessageChatOwnerLeft
MessageChatShared
MessageChecklistTasksAdded
MessageChecklistTasksDone
MessageCommon
MessageCommunityChatAdded
MessageCommunityChatJoined
MessageCommunityChatRemoved
MessageConnectedWebsite
MessageDeleteChatPhoto
MessageDice
MessageDirectMessagePriceChanged
MessageEntity
This object represents one special entity in a text message.
MessageEntityRef
A “parsed” MessageEntity.
MessageForumTopicClosed
MessageForumTopicCreated
MessageForumTopicEdited
MessageForumTopicReopened
MessageGeneralForumTopicHidden
MessageGeneralForumTopicUnhidden
MessageGenerationStopped
Describes a message generation that was stopped.
MessageGiftInfo
MessageGiftUpgradeSent
MessageGiveaway
MessageGiveawayCompleted
MessageGiveawayCreated
MessageGiveawayWinners
MessageGroupChatCreated
MessageId
A unique message identifier.
MessageInvoice
MessageLeftChatMember
MessageManagedBotCreated
MessageMessageAutoDeleteTimerChanged
MessageNewChatMembers
MessageNewChatPhoto
MessageNewChatTitle
MessagePaidMessagePriceChanged
MessagePaidMessagesWaived
A service message indicating message fees were waived.
MessagePassportData
MessagePinned
MessagePollOptionAdded
MessagePollOptionDeleted
MessageProximityAlertTriggered
MessageReactionCountUpdated
This object represents reaction changes on a message with anonymous reactions.
MessageReactionUpdated
This object represents a change of a reaction on a message performed by a user.
MessageRefundedPayment
MessageSuccessfulPayment
MessageSuggestedPostApprovalFailed
MessageSuggestedPostApproved
MessageSuggestedPostDeclined
MessageSuggestedPostPaid
MessageSuggestedPostRefunded
MessageSupergroupChatCreated
MessageTonWalletTransfer
A service message about a TON wallet transfer.
MessageUniqueGiftInfo
MessageUsersShared
MessageVideoChatEnded
MessageVideoChatParticipantsInvited
MessageVideoChatScheduled
MessageVideoChatStarted
MessageWebAppData
MessageWriteAccessAllowed
OrderInfo
This object represents information about an order.
OwnedGiftId
A unique incremental identifier of the owned gift provided by TBA.
OwnedGiftRegular
Describes a regular gift owned by a user or a chat.
OwnedGiftUnique
Describes a unique gift received and owned by a user or a chat.
OwnedGifts
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 ChatMemberKind enum.
PaidMediaInfo
Describes the paid media added to a message.
PaidMediaLivePhoto
The paid media is a live photo.
PaidMediaPhoto
The paid media is a photo.
PaidMediaPreview
The paid media isn’t available before the payment.
PaidMediaPurchased
Describes the information about a paid media purchase.
PaidMediaVideo
The paid media is a video.
PaidMessagePriceChanged
Describes a service message about a change in the price of paid messages within a chat.
PaidMessagesWaived
A service message indicating that a user used a link allowing them to send messages without paying Telegram Stars.
PassportData
Contains information about Telegram Passport data shared with the bot by the user.
PassportElementError
This object represents an error in the Telegram Passport element which was submitted that should be resolved by the user.
PassportElementErrorDataField
Represents an issue in one of the data fields that was provided by the user.
PassportElementErrorFile
Represents an issue with a document scan.
PassportElementErrorFiles
Represents an issue with a list of scans.
PassportElementErrorFrontSide
Represents an issue with the front side of a document.
PassportElementErrorReverseSide
Represents an issue with the reverse side of a document.
PassportElementErrorSelfie
Represents an issue with the selfie with a document.
PassportElementErrorTranslationFile
Represents an issue with one of the files that constitute the translation of a document.
PassportElementErrorTranslationFiles
Represents an issue with the translated version of a document.
PassportElementErrorUnspecified
Represents an issue in an unspecified place.
PassportFile
This object represents a file uploaded to Telegram Passport.
Percentage
Percentage from 0 to 100
PhotoSize
This object represents one size of a photo or a file/sticker thumbnail.
Poll
This object contains information about a poll.
PollAnswer
PollId
Unique poll identifier.
PollMedia
This object describes media attached to a poll.
PollOption
This object contains information about one answer option in a poll.
PollOptionAdded
This object represents a poll option that was added.
PollOptionDeleted
This object represents a poll option that was deleted.
PreCheckoutQuery
This object contains information about an incoming pre-checkout query.
PreCheckoutQueryId
Unique query identifier.
PreparedInlineMessage
Describes an inline message to be sent by a user of a Mini App.
PreparedKeyboardButton
Describes a keyboard button prepared for a Mini App.
ProximityAlertTriggered
This object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user.
PublicChatChannel
PublicChatSupergroup
ReactionCount
Represents a reaction added to a message along with the number of times it was added.
RefundedPayment
This object contains basic information about a refunded payment.
ReplyParameters
Describes reply parameters for the message that is being sent.
RequestId
Restricted
User, restricted in the group. This struct is part of the ChatMemberKind enum.
RevenueWithdrawalStateSucceeded
The withdrawal succeeded.
Rgb
RGB color format
RichBlockAnchor
Corresponds to <a name="...">.
RichBlockAnimation
Corresponds to <video>.
RichBlockAudio
Corresponds to <audio>.
RichBlockBlockQuotation
Corresponds to <blockquote>.
RichBlockButtons
A row of buttons in a rich formatted message.
RichBlockCaption
Caption of a rich formatted block.
RichBlockCollage
Corresponds to <tg-collage>.
RichBlockDetails
Corresponds to <details>.
RichBlockDivider
Corresponds to HTML <hr/>.
RichBlockDocument
A block with a general file.
RichBlockExpandableBlockQuotation
Corresponds to <blockquote expandable>.
RichBlockFooter
Corresponds to HTML <footer>.
RichBlockList
Corresponds to <ul>/<ol> with <li>.
RichBlockListItem
An item of a list.
RichBlockMap
Corresponds to <tg-map>.
RichBlockMathematicalExpression
Corresponds to <tg-math-block>.
RichBlockParagraph
Corresponds to HTML <p>.
RichBlockPhoto
Corresponds to <photo>.
RichBlockPreformatted
Corresponds to nested <pre>/<code>.
RichBlockPullQuotation
Loosely corresponds to <aside>.
RichBlockSectionHeading
Corresponds to HTML <h1>-<h6>.
RichBlockSlideshow
Corresponds to <tg-slideshow>.
RichBlockTable
Corresponds to <table>.
RichBlockTableCell
A cell in a table.
RichBlockThinking
Corresponds to custom <tg-thinking>.
RichBlockVideo
Corresponds to <video>.
RichBlockVoiceNote
Corresponds to <audio>.
RichMessage
Rich formatted message.
RichMessageButton
A button in a rich formatted message.
RichTextAnchor
An anchor.
RichTextAnchorLink
A link to an anchor.
RichTextBankCardNumber
A text with a bank card number.
RichTextBold
A bold text.
RichTextBotCommand
A bot command.
RichTextButton
A button embedded in rich text.
RichTextCashtag
A cashtag.
RichTextCode
A monowidth text.
RichTextCustomEmoji
A custom emoji.
RichTextDateTime
Formatted date and time.
RichTextEmailAddress
A text with an email address.
RichTextHashtag
A hashtag.
RichTextItalic
An italicized text.
RichTextMarked
A marked text.
RichTextMathematicalExpression
A mathematical expression.
RichTextMention
A mention by a username.
RichTextPhoneNumber
A text with a phone number.
RichTextReference
A reference.
RichTextReferenceLink
A link to a reference.
RichTextSpoiler
A text covered by a spoiler.
RichTextStrikethrough
A strikethrough text.
RichTextSubscript
A subscript text.
RichTextSuperscript
A superscript text.
RichTextTextMention
A mention of a Telegram user by their identifier.
RichTextTonAddress
An address in the TON blockchain.
RichTextUnderline
An underlined text.
RichTextUrl
A text with a link.
Seconds
A wrapper around u32 which represents duration in seconds.
SentGuestMessage
This object contains information about a guest message sent by the bot.
SentWebAppMessage
Contains information about an inline message sent by a Web App on behalf of a user.
SharedUser
This object contains information about a user that was shared with the bot using a KeyboardButtonRequestUsers button.
SharedWidgetQuery
A query from a forwarded message containing a shared widget created by the bot.
ShippingAddress
This object represents a shipping address.
ShippingOption
This object represents one shipping option.
ShippingQuery
This object contains information about an incoming shipping query.
ShippingQueryId
Unique query identifier.
StarAmount
Describes an amount of Telegram Stars.
StarTransaction
Describes a Telegram Star transaction.
StarTransactions
Contains a list of Telegram Star transactions.
Sticker
This object represents a sticker.
StickerFormatFlags
StickerSet
This object represents a sticker set.
Story
This object represents a story.
StoryArea
Describes a clickable area on a story media.
StoryAreaTypeLink
Describes a story area pointing to an HTTP or tg:// link. Currently, a story can have up to 3 link areas.
StoryAreaTypeLocation
Describes a story area pointing to a location. Currently, a story can have up to 10 location areas.
StoryAreaTypeSuggestedReaction
Describes a story area pointing to a suggested reaction. Currently, a story can have up to 5 suggested reaction areas.
StoryAreaTypeUniqueGift
Describes a story area pointing to a unique gift. Currently, a story can have at most 1 unique gift area.
StoryAreaTypeWeather
Describes a story area containing weather information. Currently, a story can have up to 3 weather areas.
StoryId
Identifier of a story.
SuccessfulPayment
This object contains basic information about a successful payment.
SuggestedPostApprovalFailed
Describes a service message about the failed approval of a suggested post. Currently, only caused by insufficient user funds at the time of approval.
SuggestedPostApproved
Describes a service message about the approval of a suggested post.
SuggestedPostDeclined
Describes a service message about the rejection of a suggested post.
SuggestedPostInfo
Contains information about a suggested post.
SuggestedPostPaid
Describes a service message about the failed approval of a suggested post. Currently, only caused by insufficient user funds at the time of approval.
SuggestedPostParameters
Contains parameters of a post that is being suggested by the bot.
SuggestedPostPrice
Describes the price of a suggested post.
SuggestedPostRefunded
Describes a service message about a payment refund for a suggested post.
SwitchInlineQueryChosenChat
This object represents an inline button that switches the current user to inline mode in a chosen chat, with an optional default inline query.
TelegramTransactionId
A unique identifier of the Telegram transaction.
TextQuote
This object contains information about the quoted part of a message that is replied to by the given message.
ThreadId
Reply thread identifier.
TonNft
An NFT in the TON blockchain.
TonNftAttribute
An attribute of an NFT in the TON blockchain.
TonWalletCard
A TON wallet card displayed on a user’s profile.
TonWalletCardSticker
An NFT sticker placed on a TON wallet card.
TonWalletTransfer
A service message about a transfer with a TON wallet.
TopicId
Unique identifier of the topic.
TransactionPartnerAffiliateProgram
Describes the affiliate program that issued the affiliate commission received via this transaction.
TransactionPartnerChat
Describes a transaction with a chat.
TransactionPartnerFragment
Describes a withdrawal transaction with Fragment.
TransactionPartnerTelegramApi
Describes a transaction with payment for paid broadcasting.
TransactionPartnerUser
Describes a transaction with a user.
TransactionPartnerUserGiftPurchase
TransactionPartnerUserInvoicePayment
TransactionPartnerUserPaidMediaPayment
TransactionPartnerUserPremiumPurchase
True
A type that is always true.
UniqueGift
This object describes a unique gift that was upgraded from a regular gift.
UniqueGiftBackdrop
This object describes the backdrop of a unique gift.
UniqueGiftBackdropColors
This object describes the colors of the backdrop of a unique gift.
UniqueGiftColors
This object contains information about the color scheme for a user’s name, message replies and link previews based on a unique gift.
UniqueGiftInfo
Describes a service message about a unique gift that was sent or received.
UniqueGiftModel
This object describes the model of a unique gift.
UniqueGiftSymbol
This object describes the symbol shown on the pattern of a unique gift.
UnsupportedGroupMedia
Error returned when an InputMedia can’t be used in a media group.
Update
This object represents an incoming update.
UpdateId
An identifier of a telegram update.
User
This object represents a Telegram user or bot.
UserChatBoosts
This object represents a list of boosts added to a chat by a user.
UserId
Identifier of a user.
UserProfileAudios
This object represents the audios displayed on a user’s profile.
UserProfilePhotos
This object represent a user’s profile pictures.
UserRating
This object describes the rating of a user based on their Telegram Star spendings.
UsersShared
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.
VideoChatEnded
This object represents a service message about a video chat ended in the chat.
VideoChatParticipantsInvited
This object represents a service message about new members invited to a video chat.
VideoChatScheduled
This object represents a service message about a video chat scheduled in the chat.
VideoChatStarted
This object represents a service message about a video chat started in the chat. Currently holds no information.
VideoNote
This object represents a video message (available in Telegram apps as of [v.4.0]).
VideoQuality
This object represents a video file of a specific quality.
Voice
This object represents a voice note.
WebAppData
Contains data sent from a Web App to the bot.
WebAppInfo
Contains information about a Web App.
WebhookInfo
Contains information about the current status of a webhook.
Widget
An HTML widget in a message.
WidgetId
Unique identifier of a shared widget.
WidgetQuery
A query from a widget in a message sent by or via the bot.
WidgetQueryId
Unique identifier of a widget query.
WidgetQueryTypeData
A query carrying widget data.
WidgetQueryTypeSentTransaction
A query reporting a transaction sent from the user’s TON wallet.
WidgetQueryTypeSignData
A query carrying data signed for the domain bot<bot_id>.
WidgetQueryWallet
A user’s TON wallet as reported in a widget query.
WriteAccessAllowed
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§

AllowedUpdate
BackgroundFill
This object describes the way a background is filled based on the selected colors.
BackgroundType
This object describes the type of a background.
BotCommandScope
This object represents the scope to which bot commands are applied.
BotSubscriptionState
A subscription state reported by Telegram.
ButtonRequest
Request something from user, when a button is pressed.
ButtonStyle
Style of a keyboard button.
CallbackQueryMode
How the bot receives callback queries from buttons in its own messages.
CellAlign
Horizontal alignment of a RichBlockTableCell.
CellVAlign
Vertical alignment of a RichBlockTableCell.
ChatAction
ChatBoostSource
This object describes the source of a chat boost.
ChatFullInfoKind
ChatFullInfoPublicKind
ChatJoinRequestQueryResult
Result of a chat join request query, used with AnswerChatJoinRequestQuery.
ChatKind
ChatMemberKind
ChatMemberStatus
ChatMigration
Represents group migration to a supergroup or a supergroup migration from a group.
ChatShareTheme
The theme shown when sharing a link to a user or chat.
ChatType
Type of the chat, from which the inline query was sent.
CountryCode
ISO 3166-1 alpha-2 language code.
DiceEmoji
EmojiType
A regular or custom emoji.
EncryptedPassportElementKind
ExternalReplyInfoKind
InlineKeyboardButtonKind
InlineQueryResult
This object represents one result of an inline query.
InlineQueryResultsButtonKind
InputGroupMedia
Media that can be sent as a part of a media group (album) via SendMediaGroup.
InputMedia
This object represents the content of a media message to be sent.
InputMessageContent
This object represents the content of a message to be sent as a result of an inline query.
InputPaidMedia
This object describes the paid media to be sent.
InputPollMedia
This object represents media to be sent with a poll.
InputPollOptionFormatting
InputPollOptionMedia
This object represents media to be sent with a poll option.
InputProfilePhoto
This object describes a profile photo to set.
InputRichBlock
A block in a rich formatted message to be sent.
InputRichMedia
Media that can be embedded in an InputRichMessageMedia.
InputStoryContent
This object describes the content of a story to post.
KeyboardButtonPollType
This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed.
LivePeriod
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.
MaskPoint
The part of the face relative to which the mask should be placed.
MaybeAnonymousUser
Represents either User or anonymous user (Chat) that acts on behalf of the chat
MaybeInaccessibleMessage
This object describes a message that can be inaccessible to the bot. It can be one of:
MediaKind
MenuButton
This object describes the bot’s menu button in a private chat.
MessageEntityKind
MessageEntityParseError
An invalid UTF-16 range in a Telegram message entity.
MessageKind
MessageOrigin
This object describes the origin of a message
OwnedGift
This object describes a gift received and owned by a user or a chat.
PaidMedia
This object describes paid media.
ParseMode
Formatting options.
PassportElementErrorDataFieldType
PassportElementErrorFileType
PassportElementErrorFilesType
PassportElementErrorFrontSideType
PassportElementErrorKind
PassportElementErrorReverseSideType
PassportElementErrorSelfieType
PassportElementErrorTranslationFileType
PassportElementErrorTranslationFilesType
PassportElementErrorUnspecifiedType
PollType
PublicChatKind
ReactionType
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).
ReplyMarkup
ResponseParameters
Contains information about why a request was unsuccessful.
RevenueWithdrawalState
This object describes the state of a revenue withdrawal operation.
RichBlock
A block in a rich formatted message.
RichText
Rich formatted text.
RichTextKind
The kind of a formatted RichText value.
StickerFormat
Format of a Sticker - regular/webp, animated/tgs or video/webm.
StickerKind
Kind of a Sticker - regular, mask or custom emoji.
StickerType
Type of a Sticker - regular, mask or custom emoji.
StoryAreaType
Describes the type of a clickable area on a story.
SuggestedPostRefundReason
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.
SuggestedPostState
State of the suggested post
TargetMessage
A message in chat or inline message.
TransactionPartner
This object describes the source of a transaction, or its recipient for outgoing transactions.
TransactionPartnerUserKind
Kind of the transaction. InvoicePayment for payments via invoices, PaidMediaPayment for payments for paid media, GiftPurchase for gifts sent by the bot, PremiumPurchase for Telegram Premium subscriptions gifted by the bot, BusinessAccountTransfer for direct transfers from managed business accounts
UniqueGiftOrigin
Origin of the gift. Currently, either upgrade for gifts upgraded from regular gifts, transfer for gifts transferred from other users or channels, resale for gifts bought from other users, gifted_upgrade for upgrades purchased after the gift was sent, or offer for gifts bought or sold through gift purchase offers
UntilDate
A range of time, before some date (for example a time before a restrictions will be lifted from a member of a chat).
UpdateKind
WidgetQueryChatType
The type of chat that received an inline widget.
WidgetQueryType
The type and type-specific data of a widget query.

Type Aliases§

Me
Former name for the response to GetMe.
StoryAreaPosition
Former name of AreaPosition.