โ† All rules

TGW401 navigation APIs do not work in widgets

Severity
warn
Confidence
certain
Category
JavaScript
Keywords
location, window.open, history, navigate, openLink

How to fix

use TelegramWidget.openLink / openTelegramLink instead of location, history or window.open

Specification

https://core.telegram.org/bots/widgets#javascript

Check a widget in the playground โ†’