Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onMessage in channels and groups #167

Open
vrumger opened this issue Mar 25, 2018 · 2 comments
Open

onMessage in channels and groups #167

vrumger opened this issue Mar 25, 2018 · 2 comments

Comments

@vrumger
Copy link

vrumger commented Mar 25, 2018

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
Copy link
Collaborator

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
Copy link
Author

vrumger commented Mar 26, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants