ChannelParticipantAdmin

class pyrogram.raw.types.ChannelParticipantAdmin

Admin

Constructor of ChannelParticipant.

Details:
  • Layer: 223

  • ID: 34C3BB53

Parameters:
  • user_id (int 64-bit) – Admin user ID

  • promoted_by (int 64-bit) – User that promoted the user to admin

  • date (int 32-bit) – When did the user join

  • admin_rights (ChatAdminRights) – Admin rights

  • can_edit (bool, optional) – Can this admin promote other admins with the same permissions?

  • is_self (bool, optional) – N/A

  • inviter_id (int 64-bit, optional) – User that invited the admin to the channel/group

  • rank (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_edittrue (optional)
├── is_selftrue (optional)
├── user_idlong
├── inviter_idlong (optional)
├── promoted_bylong
├── dateint
├── admin_rightsChatAdminRights
│ └── ChatAdminRights
│ ├── change_infotrue (optional)
│ ├── post_messagestrue (optional)
│ ├── edit_messagestrue (optional)
│ ├── delete_messagestrue (optional)
│ ├── ban_userstrue (optional)
│ ├── invite_userstrue (optional)
│ ├── pin_messagestrue (optional)
│ ├── add_adminstrue (optional)
│ ├── anonymoustrue (optional)
│ ├── manage_calltrue (optional)
│ ├── othertrue (optional)
│ ├── manage_topicstrue (optional)
│ ├── post_storiestrue (optional)
│ ├── edit_storiestrue (optional)
│ ├── delete_storiestrue (optional)
│ ├── manage_direct_messagestrue (optional)
│ └── manage_rankstrue (optional)
└── rankstring (optional)

Example

ChannelParticipantAdmin(
    user_id=0,
    promoted_by=0,
    date=0,
    admin_rights=ChatAdminRights(),
)