Layer 227
UpdateChatParticipantAdmin
Admin permissions of a user in a basic group were changed
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 similarly to pts values to deduplicate/update outdated chat information as specified here. |
Returns
UpdateGogram Example
// Creating UpdateChatParticipantAdmin constructor obj := &tg.UpdateChatParticipantAdmin{ ChatId: int64(1234567890), UserId: int64(1234567890), IsAdmin: true, Version: 42, }