Chat RecommendationsUSER-ONLY
User Walkthrough 15 of 18
User clients can get recommended channels and find similar channels or bots.
Getting Recommended Channels
Use getRecommendedChannels to get recommended channels as ChatPChannel objects.
const channels = await client.getRecommendedChannels();
for (const channel of channels) {
console.log(channel.id, channel.title);
}
Getting Similar Channels
Use getSimilarChannels with a channel’s identifier.
const channels = await client.getSimilarChannels(channelId);
Getting Similar Bots
Use getSimilarBots with a bot’s identifier.
const bots = await client.getSimilarBots(botId);