morethanwords / tweb

Telegram Web K, GPL v3
https://web.telegram.org/k/
GNU General Public License v3.0
1.77k stars 574 forks source link

[BUG] Cannot open `https://telegram.me/share/?url=<message>` with Telegram Web #346

Open zstadler opened 3 weeks ago

zstadler commented 3 weeks ago

Describe the bug Airalo and probably other websites are using links of the form https://telegram.me/share/?url=<message with URL> to allow users to send messages with Telegram. Such links works well when opened in a mobile device where the Telegram App is installed. However, it does not work on Chrome or Firefox browser running on a Win11 PC where Telegram Desktop is not installed.

To Reproduce Steps to reproduce the behavior:

  1. Verify that Telegram Desktop is not installed on a PC running Win11
  2. Open https://telegram.me/share/?url=Hey,... in a browser
  3. Click the "Share" button
  4. Nothing happens

Expected behavior The message should open in Telegram Web as if it is being forwarded, at the stage of selecting the recipients.

Screenshots Expect this screen when opening the above link. image

Desktop (please complete the following information):

zstadler commented 3 weeks ago

For our reference, this is how WhatsApp handles the same scenario:

  1. This is the initial screen - the equivalent of the above Telegram screenshot image

  2. This screen is shown after clicking "continue to chat", and it detect WhatsApp Desktop is not installed image

  3. This screen is shown after clicking "use WhatsApp Web" image