MadelineProtoDocs/old_docs/API_docs_v82/constructors/updateChatParticipantAdmin.md
2019-12-27 17:48:04 +01:00

1.2 KiB

title description image
updateChatParticipantAdmin Admin permissions of a user in a [legacy group](https://core.telegram.org/api/channel) were changed https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: updateChatParticipantAdmin

Back to constructors index

Admin permissions of a user in a legacy group were changed

Attributes:

Name Type Required Description
chat_id int Yes Chat ID
user_id int Yes ID of the (de)admined user
is_admin Bool Yes Whether the user was rendered admin
version int Yes Used in basic groups to reorder updates and make sure that all of them was received.

Type: Update

Example:

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

Or, if you're into Lua:

updateChatParticipantAdmin={_='updateChatParticipantAdmin', chat_id=int, user_id=int, is_admin=Bool, version=int}