I'm making a bot and need to let the user save the channelID to an array.
The rest of the code is fine and works as intended in a group, but it's totally unresponsive inside a channel.
I've if else statements for if the chat is a channel, group, supergroup or private to no avail.
I'm using the node-telegram-bot-api - here is the snippet:
bot.onText(/\/getid/, (msg) => {
console.log(`Channel/Group ID is: ${msg.chat.id}`);
});