Similar channels

The API offers a method to obtain a list of similarly themed public channels, selected based on similarities in their subscriber bases.

Scheme:

messages.chats#64ff9fd5 chats:Vector<Chat> = messages.Chats;

---functions---

channels.getChannelRecommendations#25a71742 flags:# channel:flags.0?InputChannel = messages.Chats;

Clients should invoke channels.getChannelRecommendations after joining a channel (passing the channel's peer in channel), automatically displaying a popup with a list of similarly themed channels.

The same method should also be invoked when opening a special "Similar channels" tab in the channel's profile (similar to the Media/Links/Gifs/etc tabs).

The method should also be called without setting the channel flag in the "Similar channels" section of the "Channels" tab of global search, to return a global list of recommended channels, similar to the ones the current user has already joined, see here » for more info.

The maximum number of similar channels that can be recommended by channels.getChannelRecommendations» to Premium/non-Premium users is contained in the recommended_channels_limit_premium/recommended_channels_limit_default app configuration keys.