Layer 227
method Users Bots
channels.getChannels#a7f6bbb id:Vector<InputChannel> = messages.Chats;

Parameters

Name Type Description
Id Vector < InputChannel > IDs of channels/supergroups to get info about

Returns

messages.Chats

Gogram Example

// ChannelsGetChannels - positional arguments
result, err := client.ChannelsGetChannels(&tg.VectorInputChannel{})
if err != nil {
    // handle error
}
// result is *tg.MessagesChats

Possible Errors

Code Type Description
400 CHANNEL_INVALID The provided channel is invalid.
406 CHANNEL_PRIVATE You haven't joined this channel/supergroup.
400 MSG_ID_INVALID Invalid message ID provided.
400 USER_BANNED_IN_CHANNEL You're banned from sending messages in supergroups/channels.