Enumerations¶
Enumerations are standard sets of symbolic names bound to unique values. In Tobigram, they are
defined in the pyrogram.enums package and used across client methods, types, and updates.
from pyrogram.enums import ReportReason, ChatType, ParseMode
Report Reason¶
- class pyrogram.enums.ReportReason(*values)[source]¶
Report reason enumeration used in report methods.
- SPAM = 'spam'¶
Spam, unsolicited advertisements, or scams
- VIOLENCE = 'violence'¶
Violence, physical harm, or illegal threats
- PORNOGRAPHY = 'pornography'¶
Pornography or adult content
- CHILD_ABUSE = 'child_abuse'¶
Child abuse or child sexual exploitation
- COPYRIGHT = 'copyright'¶
Copyright or intellectual property infringement
- GEO_IRRELEVANT = 'geo_irrelevant'¶
Geographically irrelevant content
- FAKE = 'fake'¶
Fake account, impersonation, or fraud
- ILLEGAL_DRUGS = 'illegal_drugs'¶
Illegal drugs or prohibited substances
- PERSONAL_DETAILS = 'personal_details'¶
Personal details, private data leaks, or doxxing
- OTHER = 'other'¶
Other reasons with custom message
Chat Type¶
- class pyrogram.enums.ChatType(*values)[source]¶
Chat type enumeration used in
Chat.- PRIVATE = 'private'¶
Chat is a private chat with a user
- BOT = 'bot'¶
Chat is a private chat with a bot
- GROUP = 'group'¶
Chat is a basic group
- SUPERGROUP = 'supergroup'¶
Chat is a supergroup
- CHANNEL = 'channel'¶
Chat is a channel
- FORUM = 'forum'¶
Chat is a forum
- COMMUNITY = 'community'¶
Chat is a community
Chat Member Status¶
- class pyrogram.enums.ChatMemberStatus(*values)[source]¶
Chat member status enumeration used in
ChatMember.- OWNER = 'owner'¶
Chat owner
- ADMINISTRATOR = 'administrator'¶
Chat administrator
- MEMBER = 'member'¶
Chat member
- RESTRICTED = 'restricted'¶
Restricted chat member
- LEFT = 'left'¶
Left chat member
- BANNED = 'banned'¶
Banned chat member