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?
You can achieve this by redirecting the browser to a telegram.me
link.
window.location.href = "https://telegram.me/yourbot"