Nikoro
Nikoro copied to clipboard
onMessage in channels and groups
I'm trying to make a plugin but when i add this it only works in private chats. Is it possible to get all messages from groups and channels?
onMessage({ message }) {
console.log(message);
}
It should work by default in groups. Did you accidentally forget privacy mode enabled?
In channels it should work, but seemingly it doesn't, perhaps due to a bug in node-telegram-bot-api
? Relevant issue: yagop/node-telegram-bot-api#489
It started working in groups, but it still doesn't work in channels