Layer 220
constructor
updateChannelParticipant#985d3abb flags:# via_chatlist:flags.3?true channel_id:long date:int actor_id:long user_id:long prev_participant:flags.0?ChannelParticipant new_participant:flags.1?ChannelParticipant invite:flags.2?ExportedChatInvite qts:int = Update;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
ViaChatlist flags.3?true Whether the participant joined using a chat folder deep link.
ChannelId long Channel ID
Date int Date of the event
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?ChannelParticipant Previous participant status
NewParticipant flags.1?ChannelParticipant New participant status
Invite flags.2?ExportedChatInvite Chat invite used to join the channel/supergroup
Qts int New qts value, see updates for more info.

Returns

Update

Gogram Example

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

    // Optional fields:
    // ViaChatlist: true,
    // PrevParticipant: &tg.ChannelParticipant{},
    // NewParticipant: &tg.ChannelParticipant{},
    // Invite: &tg.ExportedChatInvite{},
}