Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to close native browser in Telegram programmatically?

I need close browser after some user actions what was opened by link click in Telegram chat. How to do this programmatically if it's possible?

like image 456
anatol Avatar asked Sep 17 '25 17:09

anatol


1 Answers

You can achieve this by redirecting the browser to a telegram.me link.

window.location.href = "https://telegram.me/yourbot"
like image 53
Maak Avatar answered Sep 23 '25 07:09

Maak