Layer 224
ChannelsGetChannelRecommendations
Obtain a list of similarly themed public channels, selected based on similarities in their subscriber bases.
method
Users
channels.getChannelRecommendations#25a71742 flags:# channel:flags.0?InputChannel = messages.Chats;
Parameters
| Name | Type | Description |
|---|---|---|
| Channel | flags.0?InputChannel | The method will return channels related to the passed channel. If not set, the method will returns channels related to channels the user has joined. |
Returns
messages.ChatsGogram Example
// ChannelsGetChannelRecommendations - using Params struct result, err := client.ChannelsGetChannelRecommendations(&tg.ChannelsGetChannelRecommendationsParams{ // Optional fields: // Channel: &tg.InputChannel{ChannelID: int64(1234567890), AccessHash: int64(5678901234567890)}, }) if err != nil { // handle error } // result is *tg.MessagesChats
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 400 | CHANNEL_PRIVATE | You haven't joined this channel/supergroup. |
| 400 | CHAT_NOT_MODIFIED | No changes were made to chat information because the new information you passed is identical to the current information. |