Layer 220
constructor
channelParticipantBanned#6df8014e flags:# left:flags.0?true peer:Peer kicked_by:long date:int banned_rights:ChatBannedRights = ChannelParticipant;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Left flags.0?true Whether the user has left the group
Peer Peer The banned peer
KickedBy long User was kicked by the specified admin
Date int When did the user join the group
BannedRights ChatBannedRights Banned rights

Gogram Example

// Creating ChannelParticipantBanned constructor
obj := &tg.ChannelParticipantBanned{
    Peer: &tg.Peer{},
    KickedBy: int64(0),
    Date: 0,
    BannedRights: &tg.ChatBannedRights{},

    // Optional fields:
    // Left: true,
}