If for some reason the script
<script src="https://telegram.org/js/telegram-web-app.js?56"></script>
failed to load (for example, there was a network problem), then we get the error
vue-tg.js?v=f815cbef:432 Uncaught ReferenceError: Telegram is not defined
at vue-tg.js?v=f815cbef:432:5
Maybe we should add our own telegram-web-app.js loader to the package, which will try to do this several times if it doesn't work the first time. And then catch the onload method, based on which we can access the Telegram object?
If for some reason the script
<script src="https://telegram.org/js/telegram-web-app.js?56"></script>failed to load (for example, there was a network problem), then we get the error
Maybe we should add our own telegram-web-app.js loader to the package, which will try to do this several times if it doesn't work the first time. And then catch the onload method, based on which we can access the Telegram object?