Telegram-iOS icon indicating copy to clipboard operation
Telegram-iOS copied to clipboard

Use a proper JavaScript script to send Mini Apps events

Open heyqbnk opened this issue 9 months ago • 1 comments

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

heyqbnk avatar Feb 19 '25 08:02 heyqbnk

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Feb 27 '25 21:02 CLAassistant

hello friends

can we merge this or na

cuz like

its still broken

Screenshot 2025-06-25 at 14 33 16

woat avatar Jun 25 '25 18:06 woat