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

Parameters

Name Type Description
ChatId long Chat ID
UserId long ID of the (de)admined user
IsAdmin Bool Whether the user was rendered admin
Version int Used in basic groups to reorder updates and make sure that all of them was received.

Returns

Update

Gogram Example

// Creating UpdateChatParticipantAdmin constructor
obj := &tg.UpdateChatParticipantAdmin{
    ChatId: int64(0),
    UserId: int64(0),
    IsAdmin: true,
    Version: 0,
}