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

receive event update twice on ChatAction with two different action_message on user_joined #4169

Open
3 tasks done
winxen opened this issue Aug 7, 2023 · 0 comments
Open
3 tasks done

Comments

@winxen
Copy link

winxen commented Aug 7, 2023

Code that causes the issue

image

Expected behavior

I was trying to write a bot to detect and record whenever a new user joining group chat. And trying to use event.user_joined to do so, but whenever user join the group the bot would receive update event twice, one come with action_message=MessageService and user_joined=True and another one action_message=None and user_added=True.
Both events show it came from the same user and the same group, I wonder if this was cost by a bug in library or it just a normal behavior from telegram server itself, and the problem is that sometime it only send one among the two(randomly) which make it hard for which event I should focus on to determine if there a user joined group

Actual behavior

image
image

Traceback

No response

Telethon version

Telethon 1.29.2

Python version

Python 3.11.4

Operating system (including distribution name and version)

macOS 13.4.1

Other details

No response

Checklist

  • The error is in the library's code, and not in my own.
  • I have searched for this issue before posting it and there isn't an open duplicate.
  • I ran pip install -U https://github.com/LonamiWebs/Telethon/archive/v1.zip and triggered the bug in the latest version.
@winxen winxen changed the title receive event update twice on ChatAction with two different action_message receive event update twice on ChatAction with two different action_message on user_joined Aug 7, 2023
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

1 participant