Skip to content

messageChatAddMembers update not fired when user joins group via invite link (intermittent issue) #3376

@spencermayne

Description

@spencermayne

Description

Environment:

  • Telegram app: Mobile app
  • Using TDLib with TypeScript bindings via tdl v8.0.1

Issue Summary:
When users join a basic group created via createNewBasicGroupChat using an invite link, TDLib intermittently fails to emit the messageChatAddMembers update, despite the user successfully joining the group. It's unclear whether this is a TDLib issue or related to the Android/iOS Telegram apps.

Frequency:
Intermittent - roughly 1 in 50 attempts (not consistently reproducible)

Steps to Reproduce:

  1. Create a new basic group using createNewBasicGroupChat
  2. Use the default invite link created with the group (same behavior occurs with links created via createChatInviteLink)
  3. Share invite link with a user
  4. User clicks the invite link in Telegram mobile app
  5. User clicks "Join" button
  6. Loading spinner appears and disappears
  7. User is not navigated to the group chat

Expected Behavior:

  • User should be navigated to the group chat after joining
  • TDLib should emit a messageChatAddMembers update
  • Group should appear in the user's chat list

Actual Behavior:

  • User successfully joins the group (confirmed as member)
  • No messageChatAddMembers update is fired by TDLib
  • User is not navigated to the group
  • Group does not appear in chat list initially
  • Clicking the invite link again navigates to the group (no join prompt) but group still missing from chat list

Additional Observations:

  • This occurs with both the default group invite link and links created via createChatInviteLink
  • If the user leaves the group and joins again, the messageChatAddMembers event typically fires correctly
  • The user does become a member of the group (verified)
  • The missing update prevents proper UI synchronization

Questions:

  1. Is this a known issue with TDLib or potentially related to the mobile Telegram apps?
  2. Are there known conditions that could prevent the messageChatAddMembers update from being emitted?
  3. Should there be additional fallback mechanisms to detect membership changes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions