Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share links don't work in Web App #27923

Closed
Viiprogrammer opened this issue May 14, 2024 · 2 comments
Closed

Share links don't work in Web App #27923

Viiprogrammer opened this issue May 14, 2024 · 2 comments
Labels

Comments

@Viiprogrammer
Copy link

Steps to reproduce

  1. Open webapp
  2. Call
    2.1. webApp.openTelegramLink('https://t.me/share?url=' + address)
    or
    2.2. webApp.openLink('https://t.me/share?url=' + address.value)
  3. image

Expected behaviour

Open link as share link

Actual behaviour

image

Operating system

Ubuntu 22.04.4 LTS x86_64 / Windows 11

Version of Telegram Desktop

5.0.1

Installation source

Static binary from official website

Crash ID

No response

Logs

No response

@john-preston
Copy link
Member

@Viiprogrammer

The correct link to share looks like: https://t.me/share/url?url={url}

@Viiprogrammer
Copy link
Author

@Viiprogrammer

The correct link to share looks like: https://t.me/share/url?url={url}

Hmm, this actually works https://core.telegram.org/widgets/share#custom-buttons

https://t.me/share?url={url} also works too, but outside the WebApp and not present in docs.

Solved, thanks for your answer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants