mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-10-28 23:42:58 +00:00
fixes and improvements in webapps
This commit is contained in:
1 parent
78c224ffa8
commit
be7aaa7845
1 file changed
+14
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user