Raw.UpdateChatParticipantAdmin

Raw.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;
export namespace Raw {
  export class UpdateChatParticipantAdmin {
    constructor(params: { chatId: bigint; userId: bigint; isAdmin: boolean; version: number }) {}
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 185
Constructor ID: 0xd7ca61a2

Property

  • chatId : bigint

    Chat id

  • userId : bigint

    Id of the (de)admined user

  • isAdmin : boolean

    Whether the user was rendered admin

  • version : number

    Used in basic groups to reorder updates and make sure that all of them was received.