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

No updates on chat join #63

Open
megagosha opened this issue Sep 2, 2023 · 1 comment
Open

No updates on chat join #63

megagosha opened this issue Sep 2, 2023 · 1 comment

Comments

@megagosha
Copy link

The problem is that the bot does not receive any updates when user joins my supergroup (> 20k users). I used another smaller group for testing and everything was fine there.

In BotApi doc it says that for getUpdates method "chat_member" should be specified in allowed_updates field in order to receive this update type.

Am I doing something wrong or this is expected behaviour for supergroup of this size?

@dani0854
Copy link

This bot uses OnUserJoined events, which are triggered by join service messages (public messages in chat saying user joined). I had a problem that in some cases users were able to join group without triggering a service message. And telegram support said that service message on user join is not guarantied, and specific cases where it does not exist are undefined.

So I had to rewrite the bot to use OnChatMember instead, which is independent on that.
Unfortunately, I did change a lot of other things, making it hard to cherry-pick those specific changes to merge them from my fork back to here.

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