发送 «Hello, World!»
发送 «Hello, World!» with inline webview button
分享 «Hello, World!»
分享 «Hello, World!» with inline button
将当前时间发送给机器人 (x10)
展开网页视图
显示后退按钮
显示设置按钮
隐藏主按钮
隐藏辅助按钮
显示进度
禁用垂直挥动
请求全屏
锁定方向
标头:
bg_color
secondary_bg_color
custom...
背景:
bg_color
secondary_bg_color
custom...
底栏:
bg_color
secondary_bg_color
bottom_bar_bg_color
custom...
测试链接:
常规链接#1
(在网络视图中打开)
target="_blank" link
(在网络视图之外打开)
window.open() link
(在网络视图之外打开)
LikeBot t.me link
(opens inside Telegram app)
web_app_open_tg_link()
(opens inside Telegram app)
web_app_open_link()
(opens outside webview)
VoteBot tg:// link
(does not open)
web_app_open_link({try_instant_view:true})
(opens IV inside Telegram app)
web_app_open_tg_link(webapp_direct_link)
(opens with confirm for the first time, then without)
telegram.org
(opens in Chrome)
telegram.org
(opens in Firefox)
telegram.org
(opens in Safari)
telegram.org
(opens in Opera)
Return back
(Android only)
Share picture to story
Share picture to story
(with caption)
Share picture to story
(with link widget)
Share video to story
(with caption and link widget)
Download picture
Download video
Download PDF
Stickerpack
Stickerpack
(nocache)
Check Home Screen Status
Add to Home Screen
Set emoji status
Set emoji status
for 5 min
Set emoji status
(invalid id)
Test permissions:
Request Location
Request Video
Request Audio
Request Audio+Video
Read from clipboard
Request write access
Request phone number
Request server time
(invokes custom method)
Sensors:
Start Accelerometer
Start DeviceOrientation(need_absolute=false)
Start DeviceOrientation(need_absolute=true)
Start Gyroscope
Test alerts:
alert
confirm
prompt
showAlert
showConfirm
requestWriteAccess
requestContact
showPopup
showScanQrPopup
showScanQrPopup (links only)
Haptics:
Impact:
heavy
,
light
,
medium
,
rigid
,
soft
Notification:
error
,
success
,
warning
Selection:
changed
Cloud storage:
Key
Value
Save
Clear
Biometrics:
isInited:
false
available:
false
type:
access_requested:
false
(
Request access
)
access_granted:
false
(
Open settings
)
token_saved:
false
(
Set token
,
Remove token
)
device_id:
Request auth
Location:
isInited:
false
available:
false
access_requested:
false
(
Request location
)
access_granted:
false
(
Open settings
)
Data passed to webview.
Checking hash...
,
checking signature...
Theme params
Version:
, platform: