ChannelParticipantCreator

class pyrogram.raw.types.ChannelParticipantCreator

Channel/supergroup creator

Constructor of ChannelParticipant.

Details:
  • Layer: 227

  • ID: 2FE601D3

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

  • admin_rights (ChatAdminRights) – Creator admin rights

  • rank (str, optional) – The role (rank) of the group creator in the group: just an arbitrary string, admin by default

TL Schema

channelParticipantCreator#2fe601d3
flags:#
user_id:long
admin_rights:ChatAdminRights
rank:flags.0?string

= ChannelParticipant

Parameter Tree

ChannelParticipantCreator
├── user_id → long
├── 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

ChannelParticipantCreator(
    user_id=0,
    admin_rights=ChatAdminRights(),
)