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

ChatMemberUpdated.invite_link missing when rejoining a public channel using invite link after leaving. #650

Open
hethon opened this issue Oct 12, 2024 · 0 comments

Comments

@hethon
Copy link

hethon commented Oct 12, 2024

I am working on a project that involves counting the number of users who joined my channel using a specific invite link. On my first attempt to join the channel using an invite link, I was able to retrieve the invite link from ChatMemberUpdated.invite_link. However, after making some changes and needing to retest, I left the group with the account used during the first attempt and rejoined using the same invite link. Unfortunately, this time I could not find the invite link in ChatMemberUpdated.invite_link.

It appears that ChatMemberUpdated.invite_link is missing if the user was previously a member of the channel. I tested this theory with several other accounts and found the same result consistently. If an account is completely new to a channel, invite_link is present. However, if the account leaves the channel and rejoins using the same invite link, the link is not found in ChatMemberUpdated.invite_link.

This issue may also exist for groups, but I have not tested it.

P.S — Works fine if either the user is completely new to the channel or the channel is private.

Note: This does not appear to be a client issue, as the behavior was consistent across different accounts and scenarios.

@hethon hethon changed the title ChatMemberUpdated.invite_link missing when rejoining a channel using invite link after leaving. ChatMemberUpdated.invite_link missing when rejoining a public channel using invite link after leaving. Oct 12, 2024
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