UpdateChatParticipantAdmin
- class pyrogram.raw.types.UpdateChatParticipantAdmin
Admin permissions of a user in a basic group were changed
Constructor of
Update.- Details:
Layer:
223ID:
D7CA61A2
- Parameters:
chat_id (
int64-bit) – Chat IDuser_id (
int64-bit) – ID of the (de)admined useris_admin (
bool) – Whether the user was rendered adminversion (
int32-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_id →
long├── user_id →
long├── is_admin →
Bool└── version →
intExample
UpdateChatParticipantAdmin(
chat_id=0,
user_id=0,
is_admin=True,
version=0,
)