skip to Main Content

I am building Telegram Web App (Mini App). I initiated Telegram Web App using the official script published on their website: https://core.telegram.org/bots/webapps#initializing-mini-apps

I successfully initiated the app, but when I am trying to use the latest features, like write and read from cloud storage or render the native pop up, I get exception "Method is not supported in version 6.0". The problem is, that version 6.0 is only version I could get and it is defined in the script to initialize Telegram Web App.

Has anyone encountered the same problem? Am I missing something or it’s just Telegram published outdated version on their resource?

I tried to read the API documentation more precisely and tried to find a method to set the version.
I contacted the telegram support but they didn’t even bother to give me feedback.

2

Answers


  1. I was facing the same issue, and then I took a deep dive into the telegram-web-app.js file, and I noticed it has a hardcoded version of 6.0, which is then updated using the tgWebVersion param of the window.Telegram.WebView.initParams

    This value is empty if you don’t view the webpage from a telegram client, else the values are inferred.. I didn’t look at how these values are loaded tho.

    Login or Signup to reply.
  2. i faced the same. my remedy is: to store the file telegram-web-app.js on my server, where to change the parameter

    var webAppVersion = '7.7';
    

    works good.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search