Layer 220
method Users Bots
channels.getParticipants#77ced9d0 channel:InputChannel filter:ChannelParticipantsFilter offset:int limit:int hash:long = channels.ChannelParticipants;

Parameters

Name Type Description
Channel InputChannel Channel
Filter ChannelParticipantsFilter Which participant types to fetch
Offset int Offset
Limit int Limit
Hash long Hash

Possible Errors

Code Type Description
400 CHANNEL_INVALID The provided channel is invalid.
400 CHANNEL_MONOFORUM_UNSUPPORTED Monoforums do not support this feature.
406 CHANNEL_PRIVATE You haven't joined this channel/supergroup.
403 CHAT_ADMIN_REQUIRED You must be an admin in this chat to do this.
400 MSG_ID_INVALID Invalid message ID provided.

Gogram Example

// ChannelsGetParticipants - positional arguments
result, err := client.ChannelsGetParticipants(&tg.InputChannel{ChannelID: int64(123456789), AccessHash: int64(0)}, &tg.ChannelParticipantsFilter{}, 0, 0, int64(0))
if err != nil {
    // handle error
}
// result is *tg.ChannelsChannelParticipants