tdesktop icon indicating copy to clipboard operation
tdesktop copied to clipboard

startBot is invoked even if the 'startgroup' deeplink doesn't carry any 'parameter'

Open RememberTheAir opened this issue 1 month ago • 0 comments

Steps to reproduce

  1. click on a startgroup deeplink with an admin parameter and with empty startgroup parameter
  2. select a group where to add the bot as admin
  3. add the bot

Expected behaviour

messages.startBot is not invoked

Actual behaviour

messages.startBot is invoked, and /start@botusername is sent to the group

According to https://core.telegram.org/api/links#group-channel-bot-links:

  • t.me/<bot_username>?startgroup=customarg&admin=<permissions> should send a /start command in the group (works correctly)
  • t.me/<bot_username>?startgroup&admin=<permissions> should not send a /start message in the group after the bot is added (tdesktop sends it (bug), Telegram for Android doesn't (correct behavior))

Note: startgroup deeplinks without an admin parameter behave as expected

Operating system

Any

Version of Telegram Desktop

6.3.1

Installation source

Static binary from official website

Crash ID

No response

Logs


RememberTheAir avatar Nov 19 '25 14:11 RememberTheAir