Size: a a a
NK
NK
j
NK
NK
NK
const promises = chatsToSend.map((chat) => new Promise(async (res) => {
try {
const tgchat = await bot.telegram.getChat(chat)
if (tgchat.type === 'private') {
res(1)
} else {
const count = await bot.telegram.getChatMembersCount(chat)
res(count)
}
} catch (err) {
res(0)
}
}))
NK
NK
NK
NK
i
NK
L
KL
NK
NK
NK