Nikoro icon indicating copy to clipboard operation
Nikoro copied to clipboard

onMessage in channels and groups

Open vrumger opened this issue 6 years ago • 2 comments

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

vrumger avatar Mar 25 '18 04:03 vrumger

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

CapacitorSet avatar Mar 26 '18 09:03 CapacitorSet

It started working in groups, but it still doesn't work in channels

vrumger avatar Mar 26 '18 09:03 vrumger