โ† All rules

TGW403 this navigator API is unavailable in widgets

Severity
warn
Confidence
certain
Category
JavaScript
Keywords
navigator, clipboard, geolocation, share

How to fix

use TelegramWidget.copyText and HapticFeedback instead of clipboard/share/vibrate

Specification

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

Check a widget in the playground โ†’