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:
223ID:
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:
TL Schema
channels.getChannelRecommendations#25a71742
flags:#
channel:flags.0?InputChannel
= messages.Chats
Parameter Tree
GetChannelRecommendations
└── channel →
InputChannel (optional)├──
InputChannel│ ├── channel_id →
long│ └── access_hash →
long├── peer →
InputPeer│ ├──
InputPeerEmpty│ ├──
InputPeerSelf│ ├──
InputPeerChat│ ├──
InputPeerUser│ ├──
InputPeerChannel│ ├──
InputPeerUserFromMessage├── msg_id →
int└── channel_id →
longExample
await app.invoke(
GetChannelRecommendations(
channel=await app.resolve_channel(chat_id),
)
)