TelegramMessenger / Telegram-iOS

Telegram-iOS
5.89k stars 1.57k forks source link

Deep link does not run "start" command #1100

Open PaulZadorozhniy opened 1 year ago

PaulZadorozhniy commented 1 year ago

Checklist

Description

I have a telegram bot that uses deep links for making actions. When I generate QR codes for that links and scan them - only the first scan goes well, and second does not run "start" command with params.

The same behaviour can be reproduced by opening several link in browser and open them one by one. Only the first will trigger "start" command and the second does nothing. To overcome this behavior telegram app needs to be re-launched.

Or the easiest way is to try opening same deep link a couple of times. The second will not work.

Attaching videos

Expected Behavior

The expected behavior - "start" command triggers each time by deep link

Actual Behavior

Currently "start" command triggers only first time

Steps to Reproduce

Way 1

  1. Open http://t.me/bot-name?start=command_with_parrams in the browser
  2. Click "Send Message" -> "Open in Telegram". I will submit "start" command
  3. Come back to the browser and try to do the same -> No "start" command submited (same will be if open 2 different http://t.me/bot-name?start=command_with_parrams_1 and http://t.me/bot-name?start=command_with_parrams_2)

Way 2

  1. Generate 2 QR codes base on deep links http://t.me/bot-name?start=command_with_parrams_1 & http://t.me/bot-name?start=command_with_parrams_2
  2. Scan first QR code -> I will submit "start" command
  3. Scan second QR code -> I will NOT submit "start" command

Screenshots and Videos

Remove, if not applicable

https://user-images.githubusercontent.com/2473683/236692166-b63b0765-7135-4932-be97-727df4a72fc2.mp4

https://user-images.githubusercontent.com/2473683/236692174-a9923c9c-b6d8-423f-8a93-e190542be273.mp4

Environment

Device: iPhone/iPad X

iOS version: 16.0.2

App version: 9.6.3

evgeniyz13 commented 1 year ago

+1

beschastniyartem commented 1 year ago

same issue

bijanRostamnejad commented 1 year ago

same issue

andreintys commented 1 year ago

same issue

klimatov commented 1 year ago

same issue

behnammohammadi commented 1 year ago

same issue

Maxim-Lanskoy commented 1 year ago

Same issue for pretty long time. But in my case I do not need to press "send message" button, I'm just getting redirected automatically into the app with no start command.

iezepov commented 1 year ago

Bumping up. Seems like an iOS bug, Mac app is fine.

iezepov commented 1 year ago

Took the liberty of reporting here as well for visibility: https://bugs.telegram.org/c/29562 Please, upvote, might be fixed faster.

taco-devs commented 1 year ago

any update? looks like the issue is still there.

aicoderr commented 1 year ago

the same issue still , pleaseeeeeee fixxxxxxx ti GODDDDD

KrishEnacton commented 1 year ago

Hello community, Any update on this, I am facing same issue

burovytskyi commented 1 year ago

Hello, community, Any update on this, I am facing the same issue only on iPhone

If a dialogue with the bot is opened in the Telegram application and a direct link is made to the bot with a tag from another application, then there is no reaction. If you close either the dialog or the Telegram application, then everything comes fine

NodgeTheRage commented 11 months ago

Hello, same issue. Any fixes?

JoGreen commented 11 months ago

same issue on OSX. opening a deep link in the browser open telegram app but start command isn't working at all. it isn't neither logged as i coded to be. It's like it is not sent to the bot.

sonoaziz commented 10 months ago

please fixxxx it

Svatok commented 10 months ago

The same issue. IOS 17, app 10.1.2

Volosh1n commented 10 months ago

Same issue

venri commented 9 months ago

Hello everyone! @ali-fareed, @laktyushin, @petertechstories, @maicki, @Adlai-Holler, @smohantty, @lumaxis, @overtake, @garrettmoon, please take a look at this issue.

amigolj commented 9 months ago

same problem

fengyuxx commented 8 months ago

Still exist

fengyuxx commented 8 months ago

I think we can solve this problem by adding a timestamp parameter to the link so that each link is different.

vzhilov commented 8 months ago

The only workaround so far is to restart (swipe up) the Telegram App on iOS (iPhone and iPad)

alexw92 commented 7 months ago

I noticed this too and it kills usability of my bot...

Svatok commented 7 months ago

I think we can solve this problem by adding a timestamp parameter to the link so that each link is different.

Unfortunately, timestamp doesn't help. I checked.

vladkuzmich commented 6 months ago

same issue, please, fix it. It kills usability

eburgwedel commented 5 months ago

+1

Svatok commented 4 months ago

Any updates?

yedubi commented 4 months ago

It already works

On Mon, 22 Apr 2024 at 21:24, Svatok @.***> wrote:

Any updates?

— Reply to this email directly, view it on GitHub https://github.com/TelegramMessenger/Telegram-iOS/issues/1100#issuecomment-2070542972, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMYHQ52QO5PBKY7SJNPH4BLY6VIXJAVCNFSM6AAAAAAXZAEV6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZQGU2DEOJXGI . You are receiving this because you commented.Message ID: @.***>

foinution commented 4 months ago

not working

ukushu commented 1 month ago

IT IS WORKS GREAT AS IS!

It must NOT require to press "Start" for user that already added bot.

Why do you think that this is bad behaviour? User ALREADY added the bot. So telegram must NOT ask for extra actions from user.

The only thing that is important that deeplinks works on iOS. Tested on 10.14.1. Command comes.

PLEASE DO NOT FIX THIS. This is absolutely insane to ask extra action (extra click to "start") from user when he already added the bot.


If you want to user shown another "start" button - your user must stop bot and delete it. And after - open deeplink from scratch.

That's why it's called "Start". Because of user START's work with bot with this action. But if user already works telegram bot -- it's insane to require extra actions from user.

burovytskyi commented 1 month ago

IT IS WORKS GREAT AS IS!

It must NOT require to press "Start" for user that already added bot.

Why do you think that this is bad behaviour? User ALREADY added the bot. So telegram must NOT ask for extra actions from user.

The only thing that is important that deeplinks works on iOS. Tested on 10.14.1. Command comes.

PLEASE DO NOT FIX THIS. This is absolutely insane to ask extra action (extra click to "start") from user when he already added the bot.

If you want to user shown another "start" button - your user must stop bot and delete it. And after - open deeplink from scratch.

That's why it's called "Start". Because of user START's work with bot with this action. But if user already works telegram bot -- it's insane to require extra actions from user.

Nobody wrote that deep linking doesn’t work. It does not work in a certain scenario described in the topic

ukushu commented 1 month ago

Nobody wrote that deep linking doesn’t work. It does not work in a certain scenario described in the topic

What about this:

Or the easiest way is to try opening same deep link a couple of times. The second will not work.

I've opened same deeplink from browser 3 times on ios, latest telegram -- 10.14.1. All deeplinks successfully opened and I've seen reaction from my bot on those deeplinks.

I have tried in 2 scenarios:

In both cases it's worked as expected:

All works absolutely great as it must to work.

And by the way: Same behavior on:

(all of them have different source code)

Only cross-platrorm "telegram desktop" (windows, Linux, "telegram light" on MacOS) have wrong behavior: asking for extra "start" press when user already added bot to contacts: https://github.com/telegramdesktop/tdesktop/issues/27064