Layer 227
UpdateChatParticipant
A user has joined or left a specific basic group: this update can only be received by bots, see here for the user version of this update.
constructor
updateChatParticipant#d087663a flags:# chat_id:long date:int actor_id:long user_id:long prev_participant:flags.0?ChatParticipant new_participant:flags.1?ChatParticipant invite:flags.2?ExportedChatInvite qts:int = Update;
Parameters
| Name | Type | Description |
|---|---|---|
| ChatId | long | Chat ID |
| Date | int | When did this event occur |
| ActorId | long | User that triggered the change (inviter, admin that kicked the user, or the even the user_id itself) |
| UserId | long | User that was affected by the change |
| PrevParticipant | flags .0? ChatParticipant | Previous participant info (empty if this participant just joined) |
| NewParticipant | flags .1? ChatParticipant | New participant info (empty if this participant just left) |
| Invite | flags .2? ExportedChatInvite | The invite that was used to join the group |
| Qts | int | New qts value, see updates for more info. |
Returns
UpdateGogram Example
// Creating UpdateChatParticipant constructor obj := &tg.UpdateChatParticipant{ ChatId: int64(1234567890), Date: 42, ActorId: int64(1234567890), UserId: int64(1234567890), PrevParticipant: nil, NewParticipant: nil, // ... more required fields }