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

Doesn't work in groups #11

Open
KenHV opened this issue Jul 15, 2024 · 8 comments
Open

Doesn't work in groups #11

KenHV opened this issue Jul 15, 2024 · 8 comments

Comments

@KenHV
Copy link

KenHV commented Jul 15, 2024

It works perfectly fine in DMs but it doesn't respond to any messages in whitelisted groups. Nothing shows up in logs. I've tried updating all the dependencies but that doesn't work either.

@nonoo
Copy link
Owner

nonoo commented Jul 15, 2024 via email

@KenHV
Copy link
Author

KenHV commented Jul 15, 2024

Groups were already enabled. Tried turning off privacy mode, that didn't work either. I kicked the bot and re-added it (with admin rights) to be sure.

@pmezhuev
Copy link
Contributor

@KenHV try using /dlp <url>

@KenHV
Copy link
Author

KenHV commented Aug 16, 2024

@KenHV try using /dlp <url>

Hey, I just tried it with your patches and it still doesn't work for me. Tried updating dependencies as well.

@KenHV
Copy link
Author

KenHV commented Aug 19, 2024

I added a debug statement at the top of handleMsg function, it seems the function isn't triggered at all in groups, no matter what the user and chat IDs are.

cc: @pmezhuev

@kegfru
Copy link

kegfru commented Dec 25, 2024

Groups were already enabled. Tried turning off privacy mode, that didn't work either. I kicked the bot and re-added it (with admin rights) to be sure.

The same issue - no updates in channels.

  • Groups are enabled
  • Privacy mode is disabled

The bot has access to messages (in admin menu)

@kegfru
Copy link

kegfru commented Dec 25, 2024

I found dispatcher.OnNewChannelMessage() works in my case for both channels and groups.
dispatcher.OnNewMessage() works only for chats

@kegfru
Copy link

kegfru commented Dec 25, 2024

I created issue for td - gotd/td#1495

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

4 participants