1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-12-22 08:37:12 +00:00

fixes and improvements in webapps

This commit is contained in:
InsanusMokrassar 2022-08-15 01:29:24 +06:00
parent 78c224ffa8
commit be7aaa7845

View File

@ -186,3 +186,17 @@ fun WebApp.showPopup(
),
callback
)
var WebApp.requireClosingConfirmation
get() = isClosingConfirmationEnabled
set(value) {
if (value) {
enableClosingConfirmation()
} else {
disableClosingConfirmation()
}
}
fun WebApp.toggleClosingConfirmation() {
requireClosingConfirmation = !requireClosingConfirmation
}