Mini App Tester
EN
Свойства
initData
initDataUnsafe
Параметры темы
WebApp
18
ready()
Выполнить
expand()
Выполнить
close()
Выполнить
sendData()
data
Выполнить
switchInlineQuery()
query
chat_types
Выполнить
setHeaderColor()
color
Выполнить
setBackgroundColor()
color
Выполнить
setBottomBarColor()
color
Выполнить
enableClosingConfirmation()
Выполнить
disableClosingConfirmation()
Выполнить
enableVerticalSwipes()
Выполнить
disableVerticalSwipes()
Выполнить
requestFullscreen()
Выполнить
exitFullscreen()
Выполнить
lockOrientation()
Выполнить
unlockOrientation()
Выполнить
openLink()
url
Выполнить
openTelegramLink()
url
Выполнить
isVersionAtLeast()
version
Выполнить
hideKeyboard()
Выполнить
Кнопки
4
MainButton
text
color
textColor
show()
hide()
enable()
disable()
showProgress()
hideProgress()
setText()
setParams()
Клик по кнопке вызовет событие mainButtonClicked
SecondaryButton
text
position
left
right
top
bottom
show()
hide()
enable()
disable()
setParams()
BackButton
BackButton
show()
hide()
Клик вызовет backButtonClicked
SettingsButton
SettingsButton
show()
hide()
Клик вызовет settingsButtonClicked
Всплывающие окна
5
showAlert()
message
Выполнить
showConfirm()
message
Выполнить
showPopup()
title
message
Выполнить
showScanQrPopup()
text
Выполнить
closeScanQrPopup()
readTextFromClipboard()
Выполнить
Haptic Feedback
3
impactOccurred()
style
light
medium
heavy
rigid
soft
Выполнить
notificationOccurred()
type
success
warning
error
Выполнить
selectionChanged()
Выполнить
Cloud Storage
6
setItem()
key
value
Выполнить
getItem()
key
Выполнить
getKeys()
Выполнить
removeItem()
key
Выполнить
Device Storage
4
setItem()
key
value
Выполнить
getItem()
key
Выполнить
removeItem()
key
Выполнить
clear()
Выполнить
Secure Storage
5
setItem()
key
value
Выполнить
getItem()
key
Выполнить
restoreItem()
key
Выполнить
removeItem()
key
Выполнить
clear()
Выполнить
Сенсоры
3
Accelerometer
refresh_rate
start()
stop()
DeviceOrientation
refresh_rate
need_absolute
false
true
start()
stop()
Gyroscope
refresh_rate
start()
stop()
Биометрия
5
init()
Выполнить
requestAccess()
reason
Выполнить
authenticate()
reason
Выполнить
updateBiometricToken()
token
Выполнить
openSettings()
Выполнить
Локация
3
LocationManager.init()
Выполнить
LocationManager.getLocation()
Выполнить
LocationManager.openSettings()
Выполнить
Оплата & Истории
3
openInvoice()
url
Выполнить
media_url
text
widget_link
shareToStory()
shareMessage()
msg_id
Выполнить
Разрешения & Авторизация
3
requestWriteAccess()
Выполнить
requestContact()
Выполнить
requestChat()
req_id
Выполнить
Эмодзи, Экран, Файл
5
Home Screen
addToHomeScreen()
Выполнить
checkHomeScreenStatus()
Выполнить
Emoji Status
custom_emoji_id
duration (sec)
setEmojiStatus()
requestEmojiStatusAccess()
File Download
url
file_name
downloadFile()
Лог событий
0
Слушаем 45 событий
Очистить лог
Пауза
Нет событий. Используйте методы выше для генерации событий.