TelegramMessenger / Telegram-iOS

Telegram-iOS
5.57k stars 1.5k forks source link

Parameter lost with startgroup link. #843

Open hanssiemons opened 1 year ago

hanssiemons commented 1 year ago

Checklist

Description

If you open a botlink with startgroup parameter, it will add the bot to a group, but the parameter is lost. This is since the screen where you can select admin rights for the bot.

Expected Behavior

It should add the bot to the group, and pass the parameter.

Actual Behavior

The bot is added without passing the parameter.

Steps to Reproduce

https://telegram.me/thisismyfantastic_bot?startgroup=parameter

Environment

Device: iPhone

iOS version: 16.0

App version: 9.0

Please note that the parameter is also lost in the official Android app.

mitchjacksontech commented 1 year ago

Also have the issue. iOS v16.0.2 for both telegram v9.0 and v9.02

Issue only affects deeplinking with startgroup. start works as expected.

After joining the bot to the group via deeplink such as https://t.me/foo_bot?startgroup=PAYLOAD_DATA, the inviting client is expected to send a bot command message /start@foo_bot PAYLOAD_DATA. This message is never generated into the group chat.

Deeplink without a group, such as https://t.me/foo_bot?start=PAYLOAD_DATA still works as expected, and the /start PAYLOAD_DATA message is generated from the client to the bot account.

chomnit commented 1 year ago

When this bug is going to fix? The latest version also has same issue.

mizu-flex commented 10 months ago

Any update?

e4se commented 9 months ago

I'm a bit perplexed that this bug has persisted for over a year. It becomes challenging to develop within the Telegram ecosystem when I continually encounter such issues. Additionally, I'd like to mention that when I attempt to open this link from the Telegram mini app using openTelegramLink(), the mini app doesn't close as described in the documentation.

petrovi4 commented 6 months ago

And in my case, the start command is also lost. Link t.me/botname?start=asd it just opens the bot, but start is not transmitted

Telegram 10.6.2 iOs 17.2.1

tjkcc commented 2 months ago

Does everyone also get a pop-up with bot rights selection when opening startgroup links? We have all options set to false with setMyDefaultAdministratorRights, but still getting this popup with admin right suggested by default. Happens all desktop and mobile platforms.