Layer 228
method
communities.toggleParticipantBanned#9967ad0f flags:# unban:flags.0?true community:InputChannel participant:InputPeer = Bool;

Parameters

Name Type Description
Unban flags.0?true
Community InputChannel
Participant InputPeer

Returns

Bool

Gogram Example

// CommunitiesToggleParticipantBanned - using Params struct
result, err := client.CommunitiesToggleParticipantBanned(&tg.CommunitiesToggleParticipantBannedParams{
    Community: &tg.InputChannel{ChannelID: int64(1234567890), AccessHash: int64(5678901234567890)},
    Participant: &tg.InputPeerUser{UserID: int64(777000)},

    // Optional fields:
    // Unban: true,
})
if err != nil {
    // handle error
}
// result is *tg.Bool