Enumerations#

This page is about Pyrogram enumerations. Enumerations are types that hold a group of related values to be used whenever a constant value is required. They will help you deal with those values in a type-safe way and also enable code completion so that you can be sure to apply only a valid value among the expected ones.


BusinessSchedule

Business away enumeration used in BusinessInfo.

ChatAction

Chat action enumeration used in ChatEvent.

ChatEventAction

Chat event action enumeration used in get_chat_event_log().

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.

MessageEntityType

Message entity type enumeration used in MessageEntity.

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.

ParseMode

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

PollType

Poll type enumeration used in Poll.

PrivacyKey

Privacy key enumeration used in set_privacy().

ProfileColor

Profile color enumeration used in update_color() and ChatColor.

ReplyColor

Reply color enumeration used in update_color() and ChatColor.

SentCodeType

Sent code type enumeration used in SentCode.

StoriesPrivacyRules

Stories privacy rules type enumeration used in send_story().

UserStatus

User status enumeration used in User.