telegram library
Telegram Models
This library contains all the models used by the Telegram API.
Learn more about the Telegram API at https://core.telegram.org/bots/api#available-types
Classes
- AcceptedGiftTypes
- This object describes the types of gifts that can be gifted to a user or a chat.
- 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).
- Audio
- This object represents an audio file to be treated as music by the Telegram clients.
- BackgroundFill
- This object describes the way a background is filled based on the selected colors. Currently, it can be one of
- BackgroundType
- This object describes the type of a background.
- Birthdate
- Represents a user's birthdate.
- BotCommand
- This object represents a bot command.
- BotCommandScope
- This object represents the scope to which bot commands are applied.
- BotDescription
- This object represents the bot's description.
- BotName
- This object represents the bot's name.
- BotShortDescription
- This object represents the bot's short description.
- BusinessConnection
- Represents the connection of the bot with a business account.
- BusinessIntro
- Represents an introduction to a business.
- BusinessLocation
- Represents the location of a business.
- BusinessMessagesDeleted
- Represents an object received when messages are deleted from a connected business account.
- BusinessOpeningHours
- Represents the opening hours of a business.
- BusinessOpeningHoursInterval
- Represents an interval of opening hours for a business.
- CallbackGame
- A placeholder, currently holds no information. Use BotFather to set up your game.
- 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
- 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.
- ChatBoostSource
- This object describes the source of a chat boost. It can be one of
- ChatBoostUpdated
- This object represents a boost added to a chat or changed.
- ChatFullInfo
- This object represents a chat with full information.
- ChatInviteLink
- Represents an invite link for a chat.
- 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 a chat.
- ChatMemberUpdated
- This object represents changes in the status of a chat member.
- ChatPermissions
- Describes actions that a non-administrator user is allowed to take in a chat.
- ChatPhoto
- This object represents a chat photo.
- This object contains information about the chat whose identifier was shared with the bot using a KeyboardButtonRequestChat button.
- ChosenInlineResult
- 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.
- CopyTextButton
- This object represents an inline keyboard button that copies specified text to the clipboard.
- Dice
- This object represents an animated emoji that displays a random value.
- DirectMessagesTopic
- Describes a topic of a direct messages chat.
- Document
- This object represents a general file (as opposed to photos, voice messages and audio files).
- EncryptedCredentials
- Describes data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes.
- EncryptedPassportElement
- Describes documents or other Telegram Passport elements shared with the bot by the user.
- ExternalReplyInfo
- Contains information about a message that is being replied to, which may come from another chat or forum topic.
- File
- This object represents 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.
- 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. Use BotFather to create and edit games, their short names will act as unique identifiers.
- 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.
- This object represents a service message about General forum topic unhidden in the chat. Currently holds no information.
- Gift
- Represents a gift that can be sent by the bot.
- GiftBackground
- This object describes the background of a gift.
- GiftInfo
- Describes a service message about a regular gift that was sent or received.
- Gifts
- Represents 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. Currently holds no information.
- 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. You must use exactly one of the optional fields.
- InlineQuery
- This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results.
- InlineQueryResult
- This object represents one result of an inline query. Telegram clients currently support results of the following 20 types:
- 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. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.
- InlineQueryResultCachedAudio
- Represents a link to an MP3 audio file stored on the Telegram servers. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.
- InlineQueryResultCachedDocument
- Represents a link to a file stored on the Telegram servers. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file.
- InlineQueryResultCachedGif
- Represents a link to an animated GIF file stored on the Telegram servers. By default, this animated GIF file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with specified content instead of the animation.
- InlineQueryResultCachedMpeg4Gif
- Represents a link to a video animation (H.264/MPEG-4 AVC video without sound) stored on the Telegram servers. By default, this animated MPEG-4 file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.
- InlineQueryResultCachedPhoto
- Represents a link to a photo stored on the Telegram servers. By default, this photo will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.
- InlineQueryResultCachedSticker
- Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the sticker.
- InlineQueryResultCachedVideo
- Represents a link to a video file stored on the Telegram servers. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video.
- InlineQueryResultCachedVoice
- Represents a link to a voice message stored on the Telegram servers. By default, this voice message will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the voice message.
- InlineQueryResultContact
- Represents a contact with a phone number. By default, this contact will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the contact.
- InlineQueryResultDocument
- Represents a link to a file. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file. Currently, only .PDF and .ZIP files can be sent using this method.
- InlineQueryResultGame
- Represents a Game.
- InlineQueryResultGif
- Represents a link to an animated GIF file. By default, this animated GIF file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.
- InlineQueryResultLocation
- Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the location.
- InlineQueryResultMpeg4Gif
- Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default, this animated MPEG-4 file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.
- InlineQueryResultPhoto
- Represents a link to a photo. By default, this photo will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.
- InlineQueryResultsButton
- This object represents a button to be shown above inline query results. You must use exactly one of the optional fields.
- InlineQueryResultVenue
- Represents a venue. By default, the venue will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the venue.
- InlineQueryResultVideo
- Represents a link to a page containing an embedded video player or a video file. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video.
- InlineQueryResultVoice
- Represents a link to a voice recording in an .OGG container encoded with OPUS. By default, this voice recording will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the the voice message.
- InputChecklist
- Describes a checklist to create.
- InputChecklistTask
- Describes a task to add to a checklist.
- InputMedia
- This object represents the content of a media message to be sent. It should be one of
- InputMessageContent
- This object represents the content of a message to be sent as a result of an inline query. Telegram clients currently support the following 5 types:
- InputMessageContentConverter
- Converts the ID to JSON
- InputPaidMedia
-
This object describes the paid media to be sent. Currently, it can be one of
InputPaidMediaPhotoorInputPaidMediaVideo. - InputPollOption
- Represents an input poll option.
- InputProfilePhoto
- This object describes a profile photo to set. It can be one of
- InputSticker
- This object describes a sticker to be added to a sticker set.
- InputStoryContent
- This object describes the content of a story to post. Currently, it can be one of
- Invoice
- This object contains basic information about an invoice.
- 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.
- KeyboardButtonPollType
- This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed.
- KeyboardButtonRequestChat
- This object defines the criteria used to request a suitable chat. The identifier of the selected chat will be shared with the bot when the corresponding button is pressed.
- KeyboardButtonRequestUsers
- This object defines the criteria used to request a suitable user. The identifier of the selected user will be shared with the bot when the corresponding button is pressed.
- LabeledPrice
- This object represents a portion of the price for goods or services.
- LinkPreviewOptions
- Describes the options used for link preview generation.
- 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. 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.
- MaskPosition
- This object describes the position on faces where a mask should be placed by default.
- MaybeInaccessibleMessage
- This object describes a message that can be inaccessible to the bot. It can be one of
- MenuButton
-
This object describes the bot's menu button in a private chat. It should be
one of
MenuButtonCommands,MenuButtonWebApp, orMenuButtonDefault. - Message
- This object represents a message.
- MessageAutoDeleteTimerChanged
- This object represents a service message about a change in auto-delete timer settings.
- MessageEntity
- This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.
- MessageId
- This object represents a unique message identifier.
- MessageOrigin
- This object describes the origin of a message. It can be one of
- MessageReactionCountUpdated
- Represents reaction changes on a message with anonymous reactions.
- MessageReactionUpdated
- Represents a change of a reaction on a message performed by a user.
- OrderInfo
- This object represents information about an order.
- OwnedGift
- This object describes a gift received and owned by a user or a chat. Currently, it can be one of
- OwnedGifts
- Contains the list of gifts received and owned by a user or a chat.
- PaidMedia
- This object describes paid media. It can be one of
- PaidMediaInfo
- Describes the paid media added to a message.
- PaidMediaPurchased
- Represents a paid media purchase made by a user.
- PaidMessagePriceChanged
- Describes a service message about a change in the price of paid messages within a chat.
- PassportData
- Describes Telegram Passport data shared with the bot by the user.
- PassportElementError
- This object represents an error in the Telegram Passport element. It can be one of:
- PassportFile
- This object represents a file uploaded to Telegram Passport. Currently, all Telegram Passport files are in JPEG format when decrypted and don't exceed 10MB.
- PhotoSize
- This object represents one size of a photo or a file / sticker thumbnail.
- Poll
- This object contains information about a poll.
- PollAnswer
- This object represents an answer of a user in a non-anonymous poll.
- PollOption
- This object contains information about one answer option in a poll.
- PreCheckoutQuery
- This object contains information about an incoming pre-checkout query.
- PreparedInlineMessage
- Describes an inline message to be sent by a user of 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.
- ReactionCount
- Represents a reaction added to a message along with the number of times it was added.
- ReactionType
- This object describes the type of a reaction. It can be one of
- RefundedPayment
- This object contains basic information about a refunded payment.
- ReplyMarkup
- Represents a ReplyMarkup that can be used to send a message with custom keyboard, instructions to hide keyboard or to force a reply from the user.
- ReplyParameters
- Describes reply parameters for the message that is being sent.
- ResponseParameters
- Describes why a request was unsuccessful.
- RevenueWithdrawalState
- This object describes the state of a revenue withdrawal operation. It can be one of:
- SentWebAppMessage
- Describes an inline message sent by a Web App on behalf of a user.
- Represents information about a user that was shared with the bot using a KeyboardButtonRequestUser button.
- ShippingAddress
- This object represents a shipping address.
- ShippingOption
- This object represents one shipping option.
- ShippingQuery
- This object contains information about an incoming shipping query.
- StarAmount
- This object describes an amount of Telegram Stars.
- StarTransaction
- This object describes a Telegram Star transaction.
- StarTransactions
- This object represents a list of Telegram Star transactions.
- Sticker
- This object represents a sticker.
- StickerSet
- This object represents a sticker set.
- Story
- This object represents a message about a forwarded story in the chat.
- StoryArea
- Describes a clickable area on a story media.
- StoryAreaPosition
- Describes the position of a clickable area within 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 a successful payment for a suggested post.
- 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.
- TextQuote
- Contains information about the quoted part of a message that is replied to by the given message.
- TransactionPartner
- This object describes the source of a transaction, or its recipient for outgoing transactions. It can be one of:
- 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.
- Update
- This object represents an incoming 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.
- UserProfilePhotos
- This object represent a user's profile pictures.
- UserRating
- This object describes the rating of a user based on their Telegram Star spendings.
- 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).
- Voice
- This object represents a voice note.
- WebAppData
- Describes data sent from a Web App to the bot.
- WebAppInfo
- Describes a Web App.
- WebhookInfo
- Describes the current status of a webhook.
- WithChat
- The base class for all the models that have a chat.
- WithID
- The base class for all the models that have a user.
- WithUser
- The base class for all the models that have a user.
- WriteAccessAllowed
- This object represents a service message about a user allowing a bot added to the attachment menu to write messages.
Enums
- BackgroundFillType
- Represents the type of the background fill
- BackgroundTypeType
- Represents the type of the Background
- BotCommandScopeType
- This object represents the scope to which bot commands are applied. Currently, the following 7 scopes are supported:
- ChatAction
- This object represents a chat action.
- ChatBoostSourceType
- Type of the chat boost source.
- ChatMemberStatus
- Represents different types of chat member statuses in a chat.
- ChatType
- This object represents type of a chat. Currently, the following 5 types are supported:
- DiceEmoji
- This object represents dice emoji.
- InlineQueryResultType
- This object represents the type of a result of an inline query.
- InputMediaType
- This object represents the type of a media to send. Currently, the following 5 types are supported:
- InputPaidMediaType
- This object represents the type of the input paid media.
- InputProfilePhotoType
- Type of profile photo
- InputStickerFormat
- Type of the sticker to be added to a sticker set.
- InputStoryContentType
- This enum represents the type of input story content.
- MaskPositionPoint
- This object represents the position on faces where a mask should be placed by default.
- MenuButtonType
- Represents the type of the MenuButton.
- MessageEntityType
- Type of the entity. Currently, can be one of:
- MessageOriginType
-
The type of a
MessageOrigin - OwnedGiftType
- Type of the owned gift.
- PaidMediaType
-
The type of a
PaidMedia - ParseMode
- This object represents the ParseMode of a message.
- PassportElementErrorSource
-
The source of a
PassportElementError - PassportType
- This object represents a Telegram Passport element containing the user's personal details.
- PollType
-
This object contains information about a poll. Currently supported poll types are
regularandquiz. - ReactionTypeType
-
The type of a
ReactionType - RevenueWithdrawalStateType
-
The type of a
RevenueWithdrawalState - StickerType
- A class that represents the type of a sticker.
- StoryAreaTypeType
- This enum represents the type of a clickable area on a story.
- StoryContentType
- This enum represents the type of story content.
- TransactionPartnerType
-
The type of a
TransactionPartner - TransactionType
- This object represents a transaction type.
- UniqueGiftOriginType
-
The type of a
RevenueWithdrawalState
Extensions
- AcceptedGiftTypesPatterns on AcceptedGiftTypes
- Adds pattern-matching-related methods to AcceptedGiftTypes.
- AffiliateInfoPatterns on AffiliateInfo
- Adds pattern-matching-related methods to AffiliateInfo.
- AnimationExt on Animation
- Extension on Animation
- AnimationPatterns on Animation
- Adds pattern-matching-related methods to Animation.
- AudioExt on Audio
- Extension for Audio to add durationTime getter
- AudioPatterns on Audio
- Adds pattern-matching-related methods to Audio.
- BackgroundFillPatterns on BackgroundFill
- Adds pattern-matching-related methods to BackgroundFill.
- BackgroundTypePatterns on BackgroundType
- Adds pattern-matching-related methods to BackgroundType.
- BirthdatePatterns on Birthdate
- Adds pattern-matching-related methods to Birthdate.
- BotCommandPatterns on BotCommand
- Adds pattern-matching-related methods to BotCommand.
- BotCommandScopePatterns on BotCommandScope
- Adds pattern-matching-related methods to BotCommandScope.
- BotDescriptionPatterns on BotDescription
- Adds pattern-matching-related methods to BotDescription.
- BotNamePatterns on BotName
- Adds pattern-matching-related methods to BotName.
- BotShortDescriptionPatterns on BotShortDescription
- Adds pattern-matching-related methods to BotShortDescription.
- BusinessConnectionPatterns on BusinessConnection
- Adds pattern-matching-related methods to BusinessConnection.
- BusinessIntroPatterns on BusinessIntro
- Adds pattern-matching-related methods to BusinessIntro.
- BusinessLocationPatterns on BusinessLocation
- Adds pattern-matching-related methods to BusinessLocation.
- BusinessMessagesDeletedPatterns on BusinessMessagesDeleted
- Adds pattern-matching-related methods to BusinessMessagesDeleted.
- BusinessOpeningHoursIntervalPatterns on BusinessOpeningHoursInterval
- Adds pattern-matching-related methods to BusinessOpeningHoursInterval.
- BusinessOpeningHoursPatterns on BusinessOpeningHours
- Adds pattern-matching-related methods to BusinessOpeningHours.
- CallbackGamePatterns on CallbackGame
- Adds pattern-matching-related methods to CallbackGame.
- CallbackQueryPatterns on CallbackQuery
- Adds pattern-matching-related methods to CallbackQuery.
- ChatAdministratorRightsPatterns on ChatAdministratorRights
- Adds pattern-matching-related methods to ChatAdministratorRights.
- ChatBackgroundPatterns on ChatBackground
- Adds pattern-matching-related methods to ChatBackground.
- ChatBoostAddedPatterns on ChatBoostAdded
- Adds pattern-matching-related methods to ChatBoostAdded.
- ChatBoostPatterns on ChatBoost
- Adds pattern-matching-related methods to ChatBoost.
- ChatBoostRemovedPatterns on ChatBoostRemoved
- Adds pattern-matching-related methods to ChatBoostRemoved.
- ChatBoostSourcePatterns on ChatBoostSource
- Adds pattern-matching-related methods to ChatBoostSource.
- ChatBoostUpdatedPatterns on ChatBoostUpdated
- Adds pattern-matching-related methods to ChatBoostUpdated.
- ChatFullInfoPatterns on ChatFullInfo
- Adds pattern-matching-related methods to ChatFullInfo.
- ChatInviteLinkExt on ChatInviteLink
- Extension to provide additional functionality
- ChatInviteLinkPatterns on ChatInviteLink
- Adds pattern-matching-related methods to ChatInviteLink.
- ChatJoinRequestExt on ChatJoinRequest
- Extension to provide additional functionality
- ChatJoinRequestPatterns on ChatJoinRequest
- Adds pattern-matching-related methods to ChatJoinRequest.
- ChatLocationPatterns on ChatLocation
- Adds pattern-matching-related methods to ChatLocation.
- ChatMemberPatterns on ChatMember
- Adds pattern-matching-related methods to ChatMember.
- ChatMemberUpdatedExt on ChatMemberUpdated
- Extension to get DateTime from date field
- ChatMemberUpdatedPatterns on ChatMemberUpdated
- Adds pattern-matching-related methods to ChatMemberUpdated.
- ChatPatterns on Chat
- Adds pattern-matching-related methods to Chat.
- ChatPermissionsPatterns on ChatPermissions
- Adds pattern-matching-related methods to ChatPermissions.
- ChatPhotoPatterns on ChatPhoto
- Adds pattern-matching-related methods to ChatPhoto.
- Adds pattern-matching-related methods to ChatShared.
- ChosenInlineResultPatterns on ChosenInlineResult
- Adds pattern-matching-related methods to ChosenInlineResult.
- ContactPatterns on Contact
- Adds pattern-matching-related methods to Contact.
- CopyTextButtonPatterns on CopyTextButton
- Adds pattern-matching-related methods to CopyTextButton.
- DicePatterns on Dice
- Adds pattern-matching-related methods to Dice.
- DirectMessagesTopicPatterns on DirectMessagesTopic
- Adds pattern-matching-related methods to DirectMessagesTopic.
- DocumentPatterns on Document
- Adds pattern-matching-related methods to Document.
- EncryptedCredentialsPatterns on EncryptedCredentials
- Adds pattern-matching-related methods to EncryptedCredentials.
- EncryptedPassportElementPatterns on EncryptedPassportElement
- Adds pattern-matching-related methods to EncryptedPassportElement.
- ExternalReplyInfoPatterns on ExternalReplyInfo
- Adds pattern-matching-related methods to ExternalReplyInfo.
- FilePatterns on File
- Adds pattern-matching-related methods to File.
- ForumTopicClosedPatterns on ForumTopicClosed
- Adds pattern-matching-related methods to ForumTopicClosed.
- ForumTopicCreatedPatterns on ForumTopicCreated
- Adds pattern-matching-related methods to ForumTopicCreated.
- ForumTopicEditedPatterns on ForumTopicEdited
- Adds pattern-matching-related methods to ForumTopicEdited.
- ForumTopicPatterns on ForumTopic
- Adds pattern-matching-related methods to ForumTopic.
- ForumTopicReopenedPatterns on ForumTopicReopened
- Adds pattern-matching-related methods to ForumTopicReopened.
- GameHighScorePatterns on GameHighScore
- Adds pattern-matching-related methods to GameHighScore.
- GamePatterns on Game
- Adds pattern-matching-related methods to Game.
- GeneralForumTopicHiddenPatterns on GeneralForumTopicHidden
- Adds pattern-matching-related methods to GeneralForumTopicHidden.
- Adds pattern-matching-related methods to GeneralForumTopicUnhidden.
- GiftBackgroundPatterns on GiftBackground
- Adds pattern-matching-related methods to GiftBackground.
- GiftInfoPatterns on GiftInfo
- Adds pattern-matching-related methods to GiftInfo.
- GiftPatterns on Gift
- Adds pattern-matching-related methods to Gift.
- GiftsPatterns on Gifts
- Adds pattern-matching-related methods to Gifts.
- GiveawayCompletedPatterns on GiveawayCompleted
- Adds pattern-matching-related methods to GiveawayCompleted.
- GiveawayCreatedPatterns on GiveawayCreated
- Adds pattern-matching-related methods to GiveawayCreated.
- GiveawayPatterns on Giveaway
- Adds pattern-matching-related methods to Giveaway.
- GiveawayWinnersPatterns on GiveawayWinners
- Adds pattern-matching-related methods to GiveawayWinners.
- InaccessibleMessagePatterns on InaccessibleMessage
- Adds pattern-matching-related methods to InaccessibleMessage.
- InlineKeyboardButtonPatterns on InlineKeyboardButton
- Adds pattern-matching-related methods to InlineKeyboardButton.
- InlineQueryPatterns on InlineQuery
- Adds pattern-matching-related methods to InlineQuery.
- InlineQueryResultArticlePatterns on InlineQueryResultArticle
- Adds pattern-matching-related methods to InlineQueryResultArticle.
- InlineQueryResultAudioPatterns on InlineQueryResultAudio
- Adds pattern-matching-related methods to InlineQueryResultAudio.
- InlineQueryResultCachedAudioPatterns on InlineQueryResultCachedAudio
- Adds pattern-matching-related methods to InlineQueryResultCachedAudio.
- InlineQueryResultCachedDocumentPatterns on InlineQueryResultCachedDocument
- Adds pattern-matching-related methods to InlineQueryResultCachedDocument.
- InlineQueryResultCachedGifPatterns on InlineQueryResultCachedGif
- Adds pattern-matching-related methods to InlineQueryResultCachedGif.
- InlineQueryResultCachedMpeg4GifPatterns on InlineQueryResultCachedMpeg4Gif
- Adds pattern-matching-related methods to InlineQueryResultCachedMpeg4Gif.
- InlineQueryResultCachedPhotoPatterns on InlineQueryResultCachedPhoto
- Adds pattern-matching-related methods to InlineQueryResultCachedPhoto.
- InlineQueryResultCachedStickerPatterns on InlineQueryResultCachedSticker
- Adds pattern-matching-related methods to InlineQueryResultCachedSticker.
- InlineQueryResultCachedVideoPatterns on InlineQueryResultCachedVideo
- Adds pattern-matching-related methods to InlineQueryResultCachedVideo.
- InlineQueryResultCachedVoicePatterns on InlineQueryResultCachedVoice
- Adds pattern-matching-related methods to InlineQueryResultCachedVoice.
- InlineQueryResultContactPatterns on InlineQueryResultContact
- Adds pattern-matching-related methods to InlineQueryResultContact.
- InlineQueryResultDocumentPatterns on InlineQueryResultDocument
- Adds pattern-matching-related methods to InlineQueryResultDocument.
- InlineQueryResultGamePatterns on InlineQueryResultGame
- Adds pattern-matching-related methods to InlineQueryResultGame.
- InlineQueryResultGifPatterns on InlineQueryResultGif
- Adds pattern-matching-related methods to InlineQueryResultGif.
- InlineQueryResultLocationPatterns on InlineQueryResultLocation
- Adds pattern-matching-related methods to InlineQueryResultLocation.
- InlineQueryResultMpeg4GifPatterns on InlineQueryResultMpeg4Gif
- Adds pattern-matching-related methods to InlineQueryResultMpeg4Gif.
- InlineQueryResultPhotoPatterns on InlineQueryResultPhoto
- Adds pattern-matching-related methods to InlineQueryResultPhoto.
- InlineQueryResultsButtonPatterns on InlineQueryResultsButton
- Adds pattern-matching-related methods to InlineQueryResultsButton.
- InlineQueryResultVenuePatterns on InlineQueryResultVenue
- Adds pattern-matching-related methods to InlineQueryResultVenue.
- InlineQueryResultVideoPatterns on InlineQueryResultVideo
- Adds pattern-matching-related methods to InlineQueryResultVideo.
- InlineQueryResultVoicePatterns on InlineQueryResultVoice
- Adds pattern-matching-related methods to InlineQueryResultVoice.
- InputChecklistPatterns on InputChecklist
- Adds pattern-matching-related methods to InputChecklist.
- InputChecklistTaskPatterns on InputChecklistTask
- Adds pattern-matching-related methods to InputChecklistTask.
- InputMediaPatterns on InputMedia
- Adds pattern-matching-related methods to InputMedia.
- InputMessageContentPatterns on InputMessageContent
- Adds pattern-matching-related methods to InputMessageContent.
- InputPaidMediaPatterns on InputPaidMedia
- Adds pattern-matching-related methods to InputPaidMedia.
- InputPollOptionPatterns on InputPollOption
- Adds pattern-matching-related methods to InputPollOption.
- InputProfilePhotoPatterns on InputProfilePhoto
- Adds pattern-matching-related methods to InputProfilePhoto.
- InputStickerPatterns on InputSticker
- Adds pattern-matching-related methods to InputSticker.
- InputStoryContentPatterns on InputStoryContent
- Adds pattern-matching-related methods to InputStoryContent.
- InvoicePatterns on Invoice
- Adds pattern-matching-related methods to Invoice.
- KeyboardButtonPatterns on KeyboardButton
- Adds pattern-matching-related methods to KeyboardButton.
- KeyboardButtonPollTypePatterns on KeyboardButtonPollType
- Adds pattern-matching-related methods to KeyboardButtonPollType.
- KeyboardButtonRequestChatPatterns on KeyboardButtonRequestChat
- Adds pattern-matching-related methods to KeyboardButtonRequestChat.
- KeyboardButtonRequestUsersPatterns on KeyboardButtonRequestUsers
- Adds pattern-matching-related methods to KeyboardButtonRequestUsers.
- LabeledPricePatterns on LabeledPrice
- Adds pattern-matching-related methods to LabeledPrice.
- LinkPreviewOptionsPatterns on LinkPreviewOptions
- Adds pattern-matching-related methods to LinkPreviewOptions.
- LocationAddressPatterns on LocationAddress
- Adds pattern-matching-related methods to LocationAddress.
- LocationPatterns on Location
- Adds pattern-matching-related methods to Location.
- LoginURLPatterns on LoginURL
- Adds pattern-matching-related methods to LoginURL.
- MaskPositionPatterns on MaskPosition
- Adds pattern-matching-related methods to MaskPosition.
- MenuButtonPatterns on MenuButton
- Adds pattern-matching-related methods to MenuButton.
- MessageAutoDeleteTimerChangedDurationExt on MessageAutoDeleteTimerChanged
-
Extension over
MessageAutoDeleteTimerChangedmodel - MessageAutoDeleteTimerChangedPatterns on MessageAutoDeleteTimerChanged
- Adds pattern-matching-related methods to MessageAutoDeleteTimerChanged.
- MessageEntityPatterns on MessageEntity
- Adds pattern-matching-related methods to MessageEntity.
- MessageExt on Message
- Extension to add overrides for MaybeInaccessibleMessage interface
- MessageIdPatterns on MessageId
- Adds pattern-matching-related methods to MessageId.
- MessageOriginPatterns on MessageOrigin
- Adds pattern-matching-related methods to MessageOrigin.
- MessagePatterns on Message
- Adds pattern-matching-related methods to Message.
- MessageReactionCountUpdatedPatterns on MessageReactionCountUpdated
- Adds pattern-matching-related methods to MessageReactionCountUpdated.
- MessageReactionUpdatedPatterns on MessageReactionUpdated
- Adds pattern-matching-related methods to MessageReactionUpdated.
- OrderInfoPatterns on OrderInfo
- Adds pattern-matching-related methods to OrderInfo.
- OwnedGiftPatterns on OwnedGift
- Adds pattern-matching-related methods to OwnedGift.
- OwnedGiftsPatterns on OwnedGifts
- Adds pattern-matching-related methods to OwnedGifts.
- PaidMediaInfoPatterns on PaidMediaInfo
- Adds pattern-matching-related methods to PaidMediaInfo.
- PaidMediaPatterns on PaidMedia
- Adds pattern-matching-related methods to PaidMedia.
- PaidMediaPurchasedPatterns on PaidMediaPurchased
- Adds pattern-matching-related methods to PaidMediaPurchased.
- PaidMessagePriceChangedPatterns on PaidMessagePriceChanged
- Adds pattern-matching-related methods to PaidMessagePriceChanged.
- PassportDataPatterns on PassportData
- Adds pattern-matching-related methods to PassportData.
- PassportElementErrorPatterns on PassportElementError
- Adds pattern-matching-related methods to PassportElementError.
- PassportFileExt on PassportFile
-
Extension on
PassportFile - PassportFilePatterns on PassportFile
- Adds pattern-matching-related methods to PassportFile.
- PhotoSizePatterns on PhotoSize
- Adds pattern-matching-related methods to PhotoSize.
- PollAnswerPatterns on PollAnswer
- Adds pattern-matching-related methods to PollAnswer.
- PollExtension on Poll
- Extension methods for Poll
- PollOptionPatterns on PollOption
- Adds pattern-matching-related methods to PollOption.
- PollPatterns on Poll
- Adds pattern-matching-related methods to Poll.
- PreCheckoutQueryPatterns on PreCheckoutQuery
- Adds pattern-matching-related methods to PreCheckoutQuery.
- PreparedInlineMessagePatterns on PreparedInlineMessage
- Adds pattern-matching-related methods to PreparedInlineMessage.
- ProximityAlertTriggeredPatterns on ProximityAlertTriggered
- Adds pattern-matching-related methods to ProximityAlertTriggered.
- ReactionCountPatterns on ReactionCount
- Adds pattern-matching-related methods to ReactionCount.
- ReactionTypePatterns on ReactionType
- Adds pattern-matching-related methods to ReactionType.
- RefundedPaymentPatterns on RefundedPayment
- Adds pattern-matching-related methods to RefundedPayment.
- ReplyMarkupPatterns on ReplyMarkup
- Adds pattern-matching-related methods to ReplyMarkup.
- ReplyParametersPatterns on ReplyParameters
- Adds pattern-matching-related methods to ReplyParameters.
- ResponseParametersPatterns on ResponseParameters
- Adds pattern-matching-related methods to ResponseParameters.
- RevenueWithdrawalStatePatterns on RevenueWithdrawalState
- Adds pattern-matching-related methods to RevenueWithdrawalState.
- SentWebAppMessagePatterns on SentWebAppMessage
- Adds pattern-matching-related methods to SentWebAppMessage.
- Adds pattern-matching-related methods to SharedUser.
- ShippingAddressPatterns on ShippingAddress
- Adds pattern-matching-related methods to ShippingAddress.
- ShippingOptionPatterns on ShippingOption
- Adds pattern-matching-related methods to ShippingOption.
- ShippingQueryPatterns on ShippingQuery
- Adds pattern-matching-related methods to ShippingQuery.
- StarAmountPatterns on StarAmount
- Adds pattern-matching-related methods to StarAmount.
- StarTransactionPatterns on StarTransaction
- Adds pattern-matching-related methods to StarTransaction.
- StarTransactionsPatterns on StarTransactions
- Adds pattern-matching-related methods to StarTransactions.
- StickerPatterns on Sticker
- Adds pattern-matching-related methods to Sticker.
- StickerSetPatterns on StickerSet
- Adds pattern-matching-related methods to StickerSet.
- StoryAreaPatterns on StoryArea
- Adds pattern-matching-related methods to StoryArea.
- StoryAreaPositionPatterns on StoryAreaPosition
- Adds pattern-matching-related methods to StoryAreaPosition.
- StoryPatterns on Story
- Adds pattern-matching-related methods to Story.
- SuccessfulPaymentPatterns on SuccessfulPayment
- Adds pattern-matching-related methods to SuccessfulPayment.
- SuggestedPostApprovalFailedPatterns on SuggestedPostApprovalFailed
- Adds pattern-matching-related methods to SuggestedPostApprovalFailed.
- SuggestedPostApprovedPatterns on SuggestedPostApproved
- Adds pattern-matching-related methods to SuggestedPostApproved.
- SuggestedPostDeclinedPatterns on SuggestedPostDeclined
- Adds pattern-matching-related methods to SuggestedPostDeclined.
- SuggestedPostInfoPatterns on SuggestedPostInfo
- Adds pattern-matching-related methods to SuggestedPostInfo.
- SuggestedPostPaidPatterns on SuggestedPostPaid
- Adds pattern-matching-related methods to SuggestedPostPaid.
- SuggestedPostParametersExt on SuggestedPostParameters
- Extension for SuggestedPostParameters to add convenience methods
- SuggestedPostParametersPatterns on SuggestedPostParameters
- Adds pattern-matching-related methods to SuggestedPostParameters.
- SuggestedPostPriceExt on SuggestedPostPrice
- Extension for SuggestedPostPrice to add convenience methods
- SuggestedPostPricePatterns on SuggestedPostPrice
- Adds pattern-matching-related methods to SuggestedPostPrice.
- SuggestedPostRefundedPatterns on SuggestedPostRefunded
- Adds pattern-matching-related methods to SuggestedPostRefunded.
- SwitchInlineQueryChosenChatPatterns on SwitchInlineQueryChosenChat
- Adds pattern-matching-related methods to SwitchInlineQueryChosenChat.
- TextQuotePatterns on TextQuote
- Adds pattern-matching-related methods to TextQuote.
- TransactionPartnerPatterns on TransactionPartner
- Adds pattern-matching-related methods to TransactionPartner.
- UniqueGiftBackdropColorsPatterns on UniqueGiftBackdropColors
- Adds pattern-matching-related methods to UniqueGiftBackdropColors.
- UniqueGiftBackdropPatterns on UniqueGiftBackdrop
- Adds pattern-matching-related methods to UniqueGiftBackdrop.
- UniqueGiftColorsPatterns on UniqueGiftColors
- Adds pattern-matching-related methods to UniqueGiftColors.
- UniqueGiftInfoPatterns on UniqueGiftInfo
- Adds pattern-matching-related methods to UniqueGiftInfo.
- UniqueGiftModelPatterns on UniqueGiftModel
- Adds pattern-matching-related methods to UniqueGiftModel.
- UniqueGiftPatterns on UniqueGift
- Adds pattern-matching-related methods to UniqueGift.
- UniqueGiftSymbolPatterns on UniqueGiftSymbol
- Adds pattern-matching-related methods to UniqueGiftSymbol.
- UpdateExt on Update
- Extenson on Update
- UpdatePatterns on Update
- Adds pattern-matching-related methods to Update.
- UserChatBoostsPatterns on UserChatBoosts
- Adds pattern-matching-related methods to UserChatBoosts.
- UserPatterns on User
- Adds pattern-matching-related methods to User.
- UserProfilePhotosPatterns on UserProfilePhotos
- Adds pattern-matching-related methods to UserProfilePhotos.
- UserRatingPatterns on UserRating
- Adds pattern-matching-related methods to UserRating.
- Adds pattern-matching-related methods to UsersShared.
- VenuePatterns on Venue
- Adds pattern-matching-related methods to Venue.
- VideoChatEndedExt on VideoChatEnded
- Extension over the VideoChatEnded
- VideoChatEndedPatterns on VideoChatEnded
- Adds pattern-matching-related methods to VideoChatEnded.
- VideoChatParticipantsInvitedPatterns on VideoChatParticipantsInvited
- Adds pattern-matching-related methods to VideoChatParticipantsInvited.
- VideoChatScheduledExt on VideoChatScheduled
- Extension for VideoChatScheduled
- VideoChatScheduledPatterns on VideoChatScheduled
- Adds pattern-matching-related methods to VideoChatScheduled.
- VideoChatStartedPatterns on VideoChatStarted
- Adds pattern-matching-related methods to VideoChatStarted.
- VideoExt on Video
- Extension on Video
- VideoNoteExt on VideoNote
- Extension to add duration getter
- VideoNotePatterns on VideoNote
- Adds pattern-matching-related methods to VideoNote.
- VideoPatterns on Video
- Adds pattern-matching-related methods to Video.
- VoiceDurationExt on Voice
- Extensions for the Voice model.
- VoicePatterns on Voice
- Adds pattern-matching-related methods to Voice.
- WebAppDataPatterns on WebAppData
- Adds pattern-matching-related methods to WebAppData.
- WebAppInfoPatterns on WebAppInfo
- Adds pattern-matching-related methods to WebAppInfo.
- WebhookInfoPatterns on WebhookInfo
- Adds pattern-matching-related methods to WebhookInfo.
- WriteAccessAllowedPatterns on WriteAccessAllowed
- Adds pattern-matching-related methods to WriteAccessAllowed.