blacksabbatherMJ
blacksabbatherMJ
Thank you; Now I can use below code to list all channels: const dialogs = await client.getDialogs(); dialogs.forEach( dialog=>{ if(dialog.isChannel){ console.log(dialog.title); } } ) Can I use the same manner...
Do you mind show the sample code of use getDialogs to list all chats? I couldn't find it. I only know the way to list all channels as below: const...
No I'm afraid this one "dialog.isGroup && !dialog.isChannel" doesn't work. Now I use className == "Chat" to list all chats and className=="Channel" to list all channels