telegram api method · layer 229 · #25a71742
channels.getChannelRecommendations
Obtain a list of similarly themed public channels, selected based on similarities in their subscriber bases.
definition
channels.getChannelRecommendations#25a71742 flags:# channel:flags.0?InputChannel = messages.Chats;
parameters
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
channel | 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
errors (5)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection. |
| 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. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
history
present in layers 167–229 · constructor id changed 1×
| id | layers |
|---|---|
| #83b70d97 | 167–177 |
| #25a71742 | 178–229 |