Layer 220
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
Flags # Flags, see TL conditional fields
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

Update

Gogram Example

// Creating UpdateChatParticipant constructor
obj := &tg.UpdateChatParticipant{
    ChatId: int64(0),
    Date: 0,
    ActorId: int64(0),
    UserId: int64(0),
    Qts: 0,

    // Optional fields:
    // PrevParticipant: &tg.ChatParticipant{},
    // NewParticipant: &tg.ChatParticipant{},
    // Invite: &tg.ExportedChatInvite{},
}