Telegram-Bot-Node / Nikoro

A plugin-based, all-in-one, Telegram Bot written in Node.js
MIT License
56 stars 28 forks source link

onMessage in channels and groups #167

Open vrumger opened 6 years ago

vrumger commented 6 years ago

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);
}
CapacitorSet commented 6 years ago

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

vrumger commented 6 years ago

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