channels.GetChannelRecommendations

class pyrogram.raw.functions.channels.GetChannelRecommendations

Obtain a list of similarly themed public channels, selected based on similarities in their subscriber bases.

Details:
  • Layer: 223

  • ID: 25A71742

Parameters:

channel (InputChannel, optional) – 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.Chats

TL Schema

channels.getChannelRecommendations#25a71742
flags:#
channel:flags.0?InputChannel

= messages.Chats

Parameter Tree

GetChannelRecommendations
└── channelInputChannel (optional)
├── InputChannel
│ ├── channel_idlong
│ └── access_hashlong
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_idint
└── channel_idlong

Example

await app.invoke(
    GetChannelRecommendations(
        channel=await app.resolve_channel(chat_id),
    )
)