Available Types

This page is about Pyrogram Types. All types listed here are available through the pyrogram.types package. Unless required as argument to a client method, most of the types don’t need to be manually instantiated because they are only returned by other methods. You also don’t need to import them, unless you want to type-hint your variables.

from pyrogram.types import User, Message, ...

Note

Optional fields always exist inside the object, but they could be empty and contain the value of None. Empty fields aren’t shown when, for example, using print(message) and this means that hasattr(message, "photo") always returns True.

To tell whether a field is set or not, do a simple boolean check: if message.photo: ....


Users & Chats

User

A Telegram user or bot.

Chat

A chat.

ChatPreview

A chat preview.

ChatPhoto

A chat photo.

ChatMember

Contains information about one member of a chat.

ChatPermissions

Describes actions that a non-administrator user is allowed to take in a chat.

ChatInviteLink

An invite link for a chat.

ChatAdminWithInviteLinks

Represents a chat administrator that has created invite links in a chat.

ChatEvent

A chat event from the recent actions log (also known as admin log).

ChatEventFilter

Set of filters used to obtain a chat event log.

ChatMemberUpdated

Represents changes in the status of a chat member.

ChatJoinRequest

Represents a join request sent to a chat.

ChatJoiner

Contains information about a joiner member of a chat.

Dialog

A user's dialog.

Restriction

A restriction applied to bots or chats.

EmojiStatus

A user emoji status.

Birthday

Birthday information of a user.

BusinessConnection

Business information of a user.

BusinessIntro

Information about intro of this user.

BusinessRecipients

Business recipients.

BusinessWorkingHours

Business working hours.

BusinessWeeklyOpen

Business weekly open hours.

ChatAdministratorRights

Describes privileged actions an administrator is able to take in a chat.

ChatColor

Reply or profile color status.

ChatJoinResult

Describes result of join of a chat by the current user.

ChatReactions

A chat reactions

ChatSettings

A list of actions that are possible when interacting with this user, to be shown as suggested actions in the chat action bar.

Folder

Represents a folder for user chats.

FolderInviteLink

Contains a chat folder invite link.

FoundContacts

Chats found by name substring and auxiliary data.

GlobalPrivacySettings

Birthday information of a user.

GroupCallMember

Contains information about one member of a group call.

HistoryCleared

A service message about a cleared history in chat.

InviteLinkImporter

The date and user of when someone has joined with an invite link.

PhoneCallEnded

A service message about a phone_call ended in the chat.

PhoneCallStarted

A service message about a phone_call started in the chat.

PrivacyRule

A privacy rule.

StoriesStealthMode

Information about the current stealth mode session.

UserRating

Contains information about rating of a user.

AcceptedGiftTypes

Accepts gift types.

BotVerification

Information about bot verification.

BusinessBotRights

Describes actions that a connected business bot is allowed to take in a chat.

ChatFolderInviteLinkInfo

Contains information about an invite link to a chat folder.

ChatJoinResultDeclined

The join was declined by the guard bot.

ChatJoinResultGuardBotApprovalRequired

An approval from a guard bot through a Web App is required to join the chat.

ChatJoinResultRequestSent

The join request was sent and have to be approved by administrators of the chat.

ChatJoinResultSuccess

Contains information about a joiner member of a chat.

FailedToAddMember

Contains information about a user that has failed to be added to a chat.

Link

Username

A Telegram user's or chat's username.

VerificationStatus

Contains information about verification status of a chat or a user.

VideoChatEnded

A service message about a voice chat ended in the chat.

VideoChatMembersInvited

A service message about new members invited to a voice chat.

VideoChatScheduled

A service message about a voice chat scheduled in the chat.

VideoChatStarted

A service message about a voice chat started in the chat.

Messages & Media

Message

A message.

MessageEntity

One special entity in a text message.

Photo

A Photo.

Thumbnail

One size of a photo or a file/sticker thumbnail.

Audio

An audio file to be treated as music by the Telegram clients.

Document

A generic file (as opposed to photos, voice messages, audio files, ...).

Animation

An animation file (GIF or H.264/MPEG-4 AVC video without sound).

Video

A video file.

Voice

A voice note.

VideoNote

A video note.

Contact

A phone contact.

Location

A point on the map.

Venue

A venue.

Sticker

A sticker.

Game

A game.

WebPage

A webpage preview

Poll

A Poll.

PollOption

Contains information about one answer option in a poll.

Dice

A dice with a random value from 1 to 6 for currently supported base emoji.

Reaction

Contains information about a reaction.

VideoChatScheduled

A service message about a voice chat scheduled in the chat.

VideoChatStarted

A service message about a voice chat started in the chat.

VideoChatEnded

A service message about a voice chat ended in the chat.

VideoChatMembersInvited

A service message about new members invited to a voice chat.

WebAppData

Contains data sent from a Web App to the bot.

MessageReactions

Contains information about a message reactions.

ChatReactions

A chat reactions

AvailableEffect

Contains information about available effect.

BoostsStatus

Contains information about boost.

BusinessMessage

A Business message.

ChatBackground

Describes a background set for a specific chat.

ChatBoost

Contains information about one or more boosts applied by a specific user.

Checklist

Describes a checklist.

ChecklistTask

Describes a task in a checklist.

ChecklistTasksAdded

Some tasks were added to a checklist.

ChecklistTasksDone

Some tasks from a checklist were marked as done or not done.

ContactRegistered

A service message that a contact has registered with Telegram.

DirectMessagePriceChanged

A price for direct messages was changed in the channel chat.

DirectMessagesTopic

Contains information about a topic in a channel direct messages chat administered by the current user.

ExternalReplyInfo

This object contains information about a message that is being replied to, which may come from another chat or forum topic.

FactCheck

Represents a fact-check created by an independent fact-checker.

FormattedText

Contains information about a text with some entities.

ForumTopic

A forum topic.

ForumTopicClosed

A service message about a forum topic closed in the chat.

ForumTopicCreated

A service message about a new forum topic created in the chat.

ForumTopicEdited

A service message about a forum topic renamed in the chat.

ForumTopicReopened

A service message about a forum topic reopened in the chat.

GeneralForumTopicHidden

A service message about a general topic hidden in the chat.

GeneralForumTopicUnhidden

A service message about a general topic unhidden in the chat.

Gift

Describes a gift or an upgraded gift that can be transferred to another owner or transferred to the TON blockchain as an NFT.

GiftAttribute

Contains information about a star gift attribute.

GiftAuction

Describes an auction on which a gift can be purchased.

GiftAuctionState

Represent auction state of a gift.

GiftCollection

Describes collection of gifts.

GiftedPremium

Telegram Premium was gifted to the user.

GiftedStars

Telegram Stars were gifted to a user.

GiftedTon

Toncoins were gifted to a user.

Giveaway

An 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.

GiveawayPrizeStars

A Telegram Stars were received by the current user from a giveaway.

GiveawayWinners

This object represents a message about the completion of a giveaway with public winners.

InputChecklistTask

Describes a task in a checklist to be sent.

Invoice

This object contains basic information about an invoice.

LinkPreviewOptions

Describes the options used for link preview generation.

LivePhoto

A live photo.

ManagedBotCreated

This object contains information about the bot that was created to be managed by the current bot.

MaskPosition

This object describes the position on faces where a mask should be placed by default.

MediaArea

Describes the media area added to a story.

MessageContent

A message content.

MessageOrigin

This object describes the origin of a message.

MessageOriginChannel

The message was originally sent to a channel chat.

MessageOriginChat

The message was originally sent on behalf of a chat to a group chat.

MessageOriginHiddenUser

The message was originally sent by an unknown user.

MessageOriginImport

Contains information about a message imported from a foreign chat service.

MessageOriginUser

The message was originally sent by a known user.

MyBoost

Contains information about boost.

PaidMediaInfo

Describes the paid media added to a message.

PaidMediaPreview

The paid media isn't available before the payment.

PaidMessagesPriceChanged

A price for paid messages was changed in the supergroup chat.

PaidMessagesRefunded

Paid messages were refunded.

PaidReactor

Contains information about a user that added paid reactions.

PaymentForm

Contains information about an invoice payment form.

PaymentOption

Describes an additional payment option.

PollOptionAdded

Describes a service message about an option added to a poll.

PollOptionDeleted

Describes a service message about an option deleted from a poll.

PremiumGiftCode

A Telegram Premium gift code was created for the user.

ProximityAlertTriggered

Information about a proximity alert.

RefundedPayment

This object contains basic information about a refunded payment.

ReplyParameters

Describes reply parameters for the message that is being sent.

RestrictionReason

Restriction reason.

RichBlock

This object represents a block in a rich formatted message.

RichMessage

Rich formatted message.

RichText

This object represents a rich formatted text.

ScreenshotTaken

A service message that a screenshot of a message in the chat has been taken.

StarAmount

Describes a possibly non-integer amount of Telegram Stars.

Story

A story.

StoryView

A story view date and reaction information.

StrippedThumbnail

A stripped thumbnail

SuggestedPostApprovalFailed

Describes a service message about the failed approval of a suggested post.

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.

SuggestedPostPrice

Describes price of a suggested post.

SuggestedPostRefunded

Describes a service message about a payment refund for a suggested post.

TextQuote

Describes manually or automatically chosen quote from another message.

UpgradedGiftAttributeId

This object contains identifier of an upgraded gift attribute to search for.

UpgradedGiftAttributeIdBackdrop

Identifier of a gift backdrop.

UpgradedGiftAttributeIdModel

Identifier of a gift model.

UpgradedGiftAttributeIdSymbol

Identifier of a gift symbol.

UpgradedGiftAttributeRarity

Describes rarity of an upgraded gift attribute.

UpgradedGiftOriginalDetails

Describes the original details about the gift.

UpgradedGiftPurchaseOffer

An offer to purchase an upgraded gift was sent or received.

UpgradedGiftValueInfo

Contains information about value of an upgraded gift.

WriteAccessAllowed

This object represents a service message about a user allowing a bot to write messages after adding it to the attachment menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess.

AuctionBid

Describes a bid in an auction.

AuctionRound

Describes a round of an auction.

AuctionState

Describes state of an auction.

AuctionStateActive

Contains information about an ongoing auction.

AuctionStateFinished

Contains information about a finished auction.

ChatHasProtectedContentDisableRequested

Chat has_protected_content setting was requested to be disabled.

ChatHasProtectedContentToggled

Chat has_protected_content setting was changed or request to change it was rejected.

ChatOwnerChanged

Describes a service message about an ownership change in the chat.

ChatOwnerLeft

Describes a service message about the chat owner leaving the chat.

ChatTheme

Describes a chat theme.

CheckedGiftCode

Contains checked gift code data.

CraftGiftResult

Contains result of gift crafting.

CraftGiftResultFail

Craft has failed.

CraftGiftResultSuccess

Craft was successful.

GiftPurchaseLimit

Describes the maximum number of times that a specific gift can be purchased.

GiftResaleParameters

Describes parameters of a unique gift available for resale.

GiftResalePrice

Describes price of a resold gift.

GiftResalePriceStar

Describes price of a resold gift in Telegram Stars.

GiftResalePriceTon

Describes price of a resold gift in Toncoins.

GiftUpgradePreview

Contains examples of possible upgraded gifts for the given regular gift.

GiftUpgradePrice

Describes a price required to pay to upgrade a gift.

GiftUpgradeVariants

Contains all possible variants of upgraded gifts for the given regular gift.

PaymentResult

Contains the result of a payment request.

RichBlockAnchor

A block with an anchor, corresponding to the HTML tag <a> with the attribute name.

RichBlockAnimation

A block with an animation, corresponding to the HTML tag <video>.

RichBlockAudio

A block with a music file, corresponding to the HTML tag <audio>.

RichBlockBlockQuotation

A block quotation, corresponding to the HTML tag <blockquote>.

RichBlockCaption

Caption of a rich formatted block.

RichBlockCollage

A collage, corresponding to the custom HTML tag <tg-collage>.

RichBlockDetails

An expandable block for details disclosure, corresponding to the HTML tag <details>.

RichBlockDivider

A divider, corresponding to the HTML tag <hr/>.

RichBlockFooter

A footer, corresponding to the HTML tag <footer>.

RichBlockList

A list of blocks, corresponding to the HTML tag <ul> or <ol> with multiple nested tags <li>.

RichBlockListItem

An item of a list.

RichBlockMap

A block with a map, corresponding to the custom HTML tag <tg-map>.

RichBlockMathematicalExpression

A block with a mathematical expression in LaTeX format, corresponding to the custom HTML tag <tg-math-block>.

RichBlockParagraph

A text paragraph, corresponding to the HTML tag <p>.

RichBlockPhoto

A block with a photo, corresponding to the HTML tag <photo>.

RichBlockPreformatted

A preformatted text block, corresponding to the nested HTML tags <pre> and <code>.

RichBlockPullQuotation

A quotation with centered text, loosely corresponding to the HTML tag <aside>.

RichBlockSectionHeading

A section heading, corresponding to the HTML tags <h1>, <h2>, <h3>, <h4>, <h5>, or <h6>.

RichBlockSlideshow

A slideshow, corresponding to the custom HTML tag <tg-slideshow>.

RichBlockTable

A table, corresponding to the HTML tag <table>.

RichBlockTableCell

Cell in a table.

RichBlockThinking

A block with a "Thinking..." placeholder, corresponding to the custom HTML tag <tg-thinking>.

RichBlockUnsupported

A rich block unsupported yet.

RichBlockVideo

A block with a video, corresponding to the HTML tag <video>.

RichBlockVoiceNote

A block with a voice note, corresponding to the HTML tag <audio>.

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.

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

A 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.

RichTextUnderline

A underlined text.

RichTextUrl

A text with a link.

SavedCredentials

Contains information about saved payment credentials.

Str

SuccessfulPayment

A service message about a new successful payment.

SuggestedPostPriceStar

Describes price of a suggested post in Telegram Stars.

SuggestedPostPriceTon

Describes price of a suggested post in Toncoins.

UpgradedGiftAttributeRarityEpic

The attribute is epic.

UpgradedGiftAttributeRarityLegendary

The attribute is legendary.

UpgradedGiftAttributeRarityPerMille

The rarity is represented as the numeric frequence of the model.

UpgradedGiftAttributeRarityRare

The attribute is rare.

UpgradedGiftAttributeRarityUncommon

The attribute is uncommon.

UpgradedGiftPurchaseOfferRejected

An offer to purchase a gift was rejected or expired.

Bot keyboards & Commands

ReplyKeyboardMarkup

A custom keyboard with reply options.

KeyboardButton

One button of the reply keyboard.

ReplyKeyboardRemove

Object used to tell clients to remove a bot keyboard.

InlineKeyboardMarkup

An inline keyboard that appears right next to the message it belongs to.

InlineKeyboardButton

One button of an inline keyboard.

LoginUrl

Represents a parameter of the inline keyboard button used to automatically authorize a user.

ForceReply

Object used to force clients to show a reply interface.

CallbackQuery

An incoming callback query from a callback button in an inline keyboard.

GameHighScore

One row of the high scores table for a game.

CallbackGame

Placeholder, currently holds no information.

WebAppInfo

Contains information about a Web App.

MenuButton

Describes the bot's menu button in a private chat.

MenuButtonCommands

A menu button, which opens the bot's list of commands.

MenuButtonWebApp

A menu button, which launches a Web App.

MenuButtonDefault

Describes that no specific value for the menu button was set.

SentWebAppMessage

Contains information about an inline message sent by a Web App on behalf of a user.

BotCommand

A bot command with the standard slash "/" prefix.

BotCommandScope

Represents the scope to which bot commands are applied.

BotCommandScopeDefault

Represents the default scope of bot commands.

BotCommandScopeAllPrivateChats

Represents the scope of bot commands, covering all private chats.

BotCommandScopeAllGroupChats

Represents the scope of bot commands, covering all group and supergroup chats.

BotCommandScopeAllChatAdministrators

Represents the scope of bot commands, covering all group and supergroup chat administrators.

BotCommandScopeChat

Represents the scope of bot commands, covering a specific chat.

BotCommandScopeChatAdministrators

Represents the scope of bot commands, covering all administrators of a specific group or supergroup chat.

BotCommandScopeChatMember

Represents the scope of bot commands, covering a specific member of a group or supergroup chat.

BotAccessSettings

This object describes the access settings of a bot.

ChatBoostUpdated

A channel/supergroup boost has changed (bots only).

ChatShared

Contains information about a chat shared with a bot.

KeyboardButtonPollType

Contains information about a poll type.

KeyboardButtonRequestChat

Contains information about a chat peer type.

KeyboardButtonRequestManagedBot

This object defines the parameters for the creation of a managed bot.

KeyboardButtonRequestUsers

Contains information about a user peer type.

LabeledPrice

This object represents a portion of the price for goods or services.

ManagedBotUpdated

This object contains information about the creation or token update of a bot that is managed by the current bot.

MessageReactionCountUpdated

Reactions to a message with anonymous reactions were changed.

MessageReactionUpdated

This object represents a change of a reaction on a message performed by a user.

OrderInfo

This object represents information about an order.

PreCheckoutQuery

This object contains information about an incoming pre-checkout query.

PurchasedPaidMedia

This object represents information about purchased paid media.

SentGuestMessage

Describes an inline message sent by a guest bot.

ShippingAddress

Contains information about a shipping address.

ShippingOption

This object represents one shipping option.

ShippingQuery

This object contains information about an incoming shipping query.

UsersShared

Contains information about a users shared with a bot.

Inline Mode

InlineQuery

An incoming inline query.

InlineQueryResult

One result of an inline query.

InlineQueryResultCachedAudio

A link to an MP3 audio file stored on the Telegram servers

InlineQueryResultCachedDocument

A link to a file stored on the Telegram servers.

InlineQueryResultCachedAnimation

A link to an animation file stored on the Telegram servers.

InlineQueryResultCachedPhoto

A link to a photo stored on the Telegram servers.

InlineQueryResultCachedSticker

A link to a sticker stored on the Telegram servers

InlineQueryResultCachedVideo

A link to a video file stored on the Telegram servers.

InlineQueryResultCachedVoice

A link to a voice message stored on the Telegram servers.

InlineQueryResultArticle

Link to an article or web page.

InlineQueryResultAudio

Link to an audio file.

InlineQueryResultContact

Contact with a phone number

InlineQueryResultDocument

Link to a file.

InlineQueryResultAnimation

Link to an animated GIF file.

InlineQueryResultLocation

A location on a map.

InlineQueryResultPhoto

Link to a photo.

InlineQueryResultVenue

A venue.

InlineQueryResultVideo

Link to a page containing an embedded video player or a video file.

InlineQueryResultVoice

Link to a voice recording in an .OGG container encoded with OPUS.

ChosenInlineResult

A result of an inline query chosen by the user and sent to their chat partner.

Input Content

InputMedia

Content of a media message to be sent.

InputMediaPhoto

A photo to be sent inside an album.

InputMediaVideo

A video to be sent inside an album.

InputMediaAudio

An audio to be sent inside an album.

InputMediaAnimation

An animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent inside an album.

InputMediaDocument

A generic file to be sent inside an album.

InputPhoneContact

A Phone Contact to be added in your Telegram address book.

InputChatPhoto

Describes a photo to be set as a user profile or chat photo.

InputChecklist

Describes a checklist to create.

InputCredentials

Contains information about the payment method chosen by the user.

InputCredentialsApplePay

Applies if a user enters new credentials using Apple Pay.

InputCredentialsGooglePay

Applies if a user enters new credentials using Google Pay.

InputCredentialsNew

Applies if a user enters new credentials on a payment provider website.

InputCredentialsSaved

Applies if a user chooses some previously saved payment credentials.

InputInvoice

Describes an invoice to process.

InputInvoiceMessage

An invoice from a message or paid media purchase from paid media message.

InputInvoiceMessageContent

Content of an invoice message to be sent as the result of an inline query.

InputInvoiceName

An invoice from a link.

InputMediaLink

Represents an HTTP link to be sent.

InputMediaLivePhoto

Represents a live photo to be sent.

InputMediaLocation

Represents a location to be sent.

InputMediaSticker

A sticker to be attached.

InputMediaVenue

Represents a venue to be sent.

InputMessageContent

Content of a message to be sent as a result of an inline query.

InputPollMedia

Content of a media message to be sent.

InputPollOption

This object contains information about one answer option in a poll to be sent.

InputPollOptionMedia

Content of a media message to be sent.

InputPrivacyRule

Content of a privacy rule.

InputPrivacyRuleAllowAll

Allow all users.

InputPrivacyRuleAllowBots

Allow bots and miniapps.

InputPrivacyRuleAllowChats

Allow only participants of certain chats.

InputPrivacyRuleAllowCloseFriends

Allow only close friends.

InputPrivacyRuleAllowContacts

Allow contacts only.

InputPrivacyRuleAllowPremium

Allow only users with a Premium subscription, currently only usable for CHAT_INVITE.

InputPrivacyRuleAllowUsers

Allow only participants of certain users.

InputPrivacyRuleDisallowAll

Disallow all users.

InputPrivacyRuleDisallowBots

Disallow bots and miniapps.

InputPrivacyRuleDisallowChats

Disallow only participants of certain chats.

InputPrivacyRuleDisallowContacts

Disallow contacts only.

InputPrivacyRuleDisallowUsers

Disallow only participants of certain users.

InputRichMessage

Describes a checklist to create.

InputRichMessageContent

Content of a rich message to be sent as the result of an inline query.

InputTextMessageContent

Content of a text message to be sent as the result of an inline query.

InputContactMessageContent

Content of a contact message to be sent as the result of an inline query.

InputLocationMessageContent

Content of a location message to be sent as the result of an inline query.

InputVenueMessageContent

Content of a venue message to be sent as the result of an inline query.

InputChatPhotoAnimation

An animation in H.264/MPEG-4 AVC format.

InputChatPhotoPrevious

A previously used profile photo of the current user.

InputChatPhotoStatic

A static photo in JPEG format.

Authorization

SentCode

Contains info on a sent confirmation code.

TermsOfService

Telegram's Terms of Service returned by sign_in().

ActiveSession

Contains information about one session in a Telegram application used by the current user.

ActiveSessions

Contains a list of currently active sessions

FirebaseAuthenticationSettings

Contains settings for Firebase Authentication in the official applications.

PhoneNumberAuthenticationSettings

Contains settings for the authentication of the user's phone number.

List

FirebaseAuthenticationSettingsAndroid

Settings for Firebase Authentication in the official Android application.

FirebaseAuthenticationSettingsIos

Settings for Firebase Authentication in the official iOS application.


Enums

This page lists all available enums from the pyrogram.enums package.

from pyrogram.enums import ParseMode, ChatAction, ...

BlockList

Block list enumeration

BusinessSchedule

Business away enumeration used in BusinessMessage.

ButtonStyle

Button style type enumeration used in KeyboardButton and InlineKeyboardButton.

ChatAction

Chat action enumeration used in ChatEvent.

ChatEventAction

Chat event action enumeration used in get_chat_event_log().

ChatJoinRequestQueryResult

Media area type enumeration used in answer_chat_join_request_query().

ChatJoinType

How the service message NEW_CHAT_MEMBERS was used for the member to join the chat.

ChatMemberStatus

Chat member status enumeration used in ChatMember.

ChatMembersFilter

Chat members filter enumeration used in get_chat_members()

ChatType

Chat type enumeration used in Chat.

ClientPlatform

Valid platforms for a Client.

FolderColor

Folder color enumeration used in Folder.

GiftAttributeType

Star gift attribute type enumeration used in GiftAttribute.

GiftForResaleOrder

Describes order in which upgraded gifts for resale will be sorted.

GiftPurchaseOfferState

Gift purchase offer state enumeration used in UpgradedGiftPurchaseOffer.

GiftType

Gift type enumeration used in Gift.

MaskPointType

Mask point type enumeration used in MaskPosition.

MediaAreaType

Media area type enumeration used in MediaArea.

MessageEntityType

Message entity type enumeration used in MessageEntity.

MessageMediaType

Message media type enumeration used in Message.

MessageOriginType

Message origin type enumeration used in MessageOrigin.

MessageServiceType

Message service type enumeration used in Message.

MessagesFilter

Messages filter enumeration used in search_messages() and search_global()

NextCodeType

Next code type enumeration used in SentCode.

PaidReactionPrivacy

Reaction privacy type enumeration used in send_paid_reaction().

ParseMode

Parse mode enumeration used in various places to set a specific parse mode

PaymentFormType

Describes type of payment form.

PhoneCallDiscardReason

Phone call discard reason enumeration used in PhoneCallEnded.

PhoneNumberCodeType

Describes type of the request for which a code is sent to a phone number

PollType

Poll type enumeration used in Poll.

PrivacyKey

Privacy key enumeration used in set_privacy().

PrivacyRuleType

Privacy rule type enumeration used in PrivacyRule.

ProfileColor

Profile color enumeration used in update_color() and ChatColor.

ProfileTab

Profile tab enumeration used in Chat.

ReplyColor

Reply color enumeration used in update_color() and ChatColor.

SentCodeType

Sent code type enumeration used in SentCode.

StickerType

Sticker type enumeration used in Sticker.

StoriesPrivacyRules

Stories privacy rules type enumeration used in send_story().

SuggestedPostRefundReason

Suggested post refund reason enumeration used in SuggestedPostRefunded.

SuggestedPostState

Suggested post state enumeration used in SuggestedPostInfo.

TopChatCategory

Represents the categories of chats for which a list of frequently used chats can be retrieved.

UpgradedGiftOrigin

Origin from which the upgraded gift was obtained.

UserStatus

User status enumeration used in User.