JingMatrix / ChromeXt

UserScript and DevTools supports for Chromium based and WebView based browsers
https://jingmatrix.github.io/ChromeXt/
GNU General Public License v3.0
695 stars 39 forks source link

Feature request: Add support for telegram bot web apps #171

Open Talisman9964 opened 5 months ago

Talisman9964 commented 5 months ago

Would be awesome if i was able to inspect my telegram bot web apps on mobile directly in telegram . If possible please add support for telegram web apps webview to chromext . I am not sure if telegram android uses the system webview or not but it seems like it does

JingMatrix commented 5 months ago

If you cannot do it with Chrome on desktops, then you cannot do it with ChromeXt. Telegram bots codes are mostly server side, not executed inside your client browsers.

Talisman9964 commented 5 months ago

If you cannot do it with Chrome on desktops, then you cannot do it with ChromeXt. Telegram bots codes are mostly server side, not executed inside your client browsers.

Indeed , usually telegram bots are server side applications but nowadays bots can launch a webview with a web ui for better user experience , and yes we can debug them using chrome devtools on desktop . You can find more info on https://core.telegram.org/bots/webapps#debug-mode-for-mini-apps .

telegram also has a demo web app called @durgerking

JingMatrix commented 5 months ago

Thank you for the information. You may provide more if you proceed to investigate this issue, which would be great. In ChromeXt, there is more or less re-implement of WebSocket messaging. See https://github.com/JingMatrix/ChromeXt/tree/master/app/src/main/java/org/matrix/chromext/devtools

Moreover, the front-end of ChromeXt deliberately ignore debug sessions for service-workers, which might cause the issue.

Tanzin01 commented 2 weeks ago

@Talisman9964 were you able to find a solution?