gramjs
gramjs copied to clipboard
RPCError: 400: CHANNEL_PRIVATE (caused by channels.GetChannels)
i get all joined channels by calling client.iterDialogs(), when i try to get the detail infos, i got an error that saying RPCError: 400: CHANNEL_PRIVATE (caused by channels.GetChannels)
how can i know if a channel is private or how to skip the private channel?
const channels = await client.invoke(new Api.channels.GetChannels({
id: ids,
}));