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

In browser, twa.showPopup does not work. It throw error '[Telegram.WebApp] Method showPopup is not supported in version 6.0' #43

Open
KyoungWan opened this issue Dec 19, 2024 · 1 comment
Labels
invalid This doesn't seem right

Comments

@KyoungWan
Copy link

Problem situation

  • twa.showConfirm does not work in chrome environment.

Details

  • This does not happen when testing in a TMA environment using ngrok, but it does happen when testing in chrome.

  • Probably because there is no initData in chrome, I am using the default version of 6.0, which is listed on https://telegram.org/js/telegram-web-app.js, and various twa functions are not available in that version, so the error occurs.

  • However, twa.openLink works fine in chrome. twa.showConfirm gives the following error.
    [Telegram.WebApp] Method showPopup is not supported in version 6.0

Question

  1. why does twa.openLink work in chrome environment but twa.showConfirm doesn't work?
  2. If I want to make twa's methods work in chrome environment, is there anything else I need to do besides installing and using the ‘@twa-dev/sdk’ library?
@ArthurStam
Copy link
Member

What type of Telegram client do you use?

@ArthurStam ArthurStam added the invalid This doesn't seem right label Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Development

No branches or pull requests

2 participants