updateChatParticipantAdmin

Admin permissions of a user in a basic group were changed

updateChatParticipantAdmin#d7ca61a2 chat_id:long user_id:long is_admin:Bool version:int = Update;

Parameters

Name Type Description
chat_id long Chat ID
user_id long ID of the (de)admined user
is_admin Bool Whether the user was rendered admin
version int Used similarly to pts values to deduplicate/update outdated chat information as specified here ยป.

Type

Update

Related pages

Peer database

Many constructors in the API need to be stored in a local database upon reception and should only ever be updated reactively (passively) when received via updates or by other means (as specified in the documentation), to avoid overloading the server by continuously requesting changes for the same unchanged information.

Channels, supergroups, gigagroups and basic groups

How to handle channels, supergroups, gigagroups, basic groups, and what's the difference between them.