Telegram-iOS
Telegram-iOS copied to clipboard
Use a proper JavaScript script to send Mini Apps events
At the moment, developers have problem calling window.TelegramGameProxy.receiveEvent even when it is undefined. A possible reason is that the client relies on the telegram-web-app.js file inserted in the head tag of the web application. This file defines required field in-place, but still, we have a lot of developers not using this approach and using the async one.
To solve the problem, I offer to check if the path window.TelegramGameProxy.receiveEvent exists at all, and call the function only if it does.
You can learn more about the issues here: https://github.com/Telegram-Mini-Apps/telegram-apps/issues/664
hello friends
can we merge this or na
cuz like
its still broken