Update content of files

This commit is contained in:
GitHub Action 2024-07-10 16:09:28 +00:00
parent 08a5db5319
commit 7280372d51

View file

@ -47,13 +47,13 @@
<p>The API offers a method to obtain a list of similarly themed public channels, selected based on similarities in their <strong>subscriber bases</strong>. </p>
<p>Scheme:</p>
<pre><code><a href='/constructor/messages.chats'>messages.chats</a>#64ff9fd5 chats:<a href='/type/Vector%20t'>Vector</a>&lt;<a href='/type/Chat'>Chat</a>&gt; = <a href='/type/messages.Chats'>messages.Chats</a>;
<a href='/constructor/messages.chatsSlice'>messages.chatsSlice</a>#9cd81144 count:<a href='/type/int'>int</a> chats:<a href='/type/Vector%20t'>Vector</a>&lt;<a href='/type/Chat'>Chat</a>&gt; = <a href='/type/messages.Chats'>messages.Chats</a>;
---functions---
<a href='/method/channels.getChannelRecommendations'>channels.getChannelRecommendations</a>#25a71742 flags:<a href='/type/%23'>#</a> channel:flags.0?<a href='/type/InputChannel'>InputChannel</a> = <a href='/type/messages.Chats'>messages.Chats</a>;</code></pre>
<p>Clients should invoke this method after joining a <a href="/api/channel">channel</a>, automatically displaying a popup with a list of similarly themed channels. </p>
<p>Clients should invoke <a href="/method/channels.getChannelRecommendations">channels.getChannelRecommendations</a> after joining a <a href="/api/channel">channel</a> (passing the channel's peer in <code>channel</code>), automatically displaying a popup with a list of similarly themed channels. </p>
<p>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). </p>
<p>The method should also be called <em>without</em> setting the <code>channel</code> flag in the "Similar channels" section of the "Channels" tab of global search, to return a <em>global</em> list of recommended channels, similar to the ones the current user has already joined. </p>
<p>The maximum number of similar channels that can be recommended by <a href="/method/channels.getChannelRecommendations">channels.getChannelRecommendations»</a> to <a href="/api/premium">Premium</a>/non-<a href="/api/premium">Premium</a> users is contained in the <a href="/api/config#recommended-channels-limit-premium">recommended_channels_limit_premium</a>/<a href="/api/config#recommended-channels-limit-default">recommended_channels_limit_default</a> app configuration keys.</p></div>
</div>