gramjs icon indicating copy to clipboard operation
gramjs copied to clipboard

RPCError: 400: CHANNEL_PRIVATE (caused by channels.GetChannels)

Open liesauer opened this issue 1 year ago • 0 comments

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,
}));

liesauer avatar Nov 01 '24 02:11 liesauer