UpdateChatParticipantAdmin

class pyrogram.raw.types.UpdateChatParticipantAdmin

Admin permissions of a user in a basic group were changed

Constructor of Update.

Details:
  • Layer: 223

  • ID: D7CA61A2

Parameters:
  • chat_id (int 64-bit) – Chat ID

  • user_id (int 64-bit) – ID of the (de)admined user

  • is_admin (bool) – Whether the user was rendered admin

  • version (int 32-bit) – Used in basic groups to reorder updates and make sure that all of them was received.

TL Schema

updateChatParticipantAdmin#d7ca61a2
chat_id:long
user_id:long
is_admin:Bool
version:int

= Update

Parameter Tree

UpdateChatParticipantAdmin
├── chat_idlong
├── user_idlong
├── is_adminBool
└── versionint

Example

UpdateChatParticipantAdmin(
    chat_id=0,
    user_id=0,
    is_admin=True,
    version=0,
)