Link Search Menu Expand Document

Constructor: updateChatParticipantAdmin

Back to constructors index

Admin permissions of a user in a basic group were changed

Attributes:

NameTypeRequiredDescription
chat_idlongYesChat ID
user_idlongYesID of the (de)admined user
is_adminBoolYesWhether the user was rendered admin
versionintYesUsed in basic groups to reorder updates and make sure that all of them was received.

Type: Update

Example:

$updateChatParticipantAdmin = ['_' => 'updateChatParticipantAdmin', 'chat_id' => long, 'user_id' => long, 'is_admin' => Bool, 'version' => int];