Layer 220
ChannelsGetChannels
Get info about channels/supergroups
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.ChatsPossible 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. |
Gogram Example
// ChannelsGetChannels - positional arguments result, err := client.ChannelsGetChannels([]tg.InputChannel{&tg.InputChannel{ChannelID: int64(123456789), AccessHash: int64(0)}}) if err != nil { // handle error } // result is *tg.MessagesChats