ChannelParticipantAdmin
- class pyrogram.raw.types.ChannelParticipantAdmin
Admin
Constructor of
ChannelParticipant.- Details:
Layer:
223ID:
34C3BB53
- Parameters:
user_id (
int64-bit) – Admin user IDpromoted_by (
int64-bit) – User that promoted the user to admindate (
int32-bit) – When did the user joinadmin_rights (
ChatAdminRights) – Admin rightscan_edit (
bool, optional) – Can this admin promote other admins with the same permissions?is_self (
bool, optional) – N/Ainviter_id (
int64-bit, optional) – User that invited the admin to the channel/grouprank (
str, optional) – The role (rank) of the admin in the group: just an arbitrary string, admin by default
TL Schema
channelParticipantAdmin#34c3bb53
flags:#
can_edit:flags.0?true
self:flags.1?true
user_id:long
inviter_id:flags.1?long
promoted_by:long
date:int
admin_rights:ChatAdminRights
rank:flags.2?string
= ChannelParticipant
Parameter Tree
ChannelParticipantAdmin
├── can_edit →
true (optional)├── is_self →
true (optional)├── user_id →
long├── inviter_id →
long (optional)├── promoted_by →
long├── date →
int├── admin_rights →
ChatAdminRights│ └──
ChatAdminRights│ ├── change_info →
true (optional)│ ├── post_messages →
true (optional)│ ├── edit_messages →
true (optional)│ ├── delete_messages →
true (optional)│ ├── ban_users →
true (optional)│ ├── invite_users →
true (optional)│ ├── pin_messages →
true (optional)│ ├── add_admins →
true (optional)│ ├── anonymous →
true (optional)│ ├── manage_call →
true (optional)│ ├── other →
true (optional)│ ├── manage_topics →
true (optional)│ ├── post_stories →
true (optional)│ ├── edit_stories →
true (optional)│ ├── delete_stories →
true (optional)│ ├── manage_direct_messages →
true (optional)│ └── manage_ranks →
true (optional)└── rank →
string (optional)Example
ChannelParticipantAdmin(
user_id=0,
promoted_by=0,
date=0,
admin_rights=ChatAdminRights(),
)