From 44a81868306abd00cb088e07d4c63d8d96e2f001 Mon Sep 17 00:00:00 2001 From: bpavuk Date: Sun, 7 Jul 2024 20:28:18 +0300 Subject: [PATCH] Bot API 7.7 now WebApp class supports vertical swipes to close and/or minimize the app --- .../src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/WebApp.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/WebApp.kt b/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/WebApp.kt index 8ef1569ca8..47465ef96b 100644 --- a/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/WebApp.kt +++ b/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/WebApp.kt @@ -30,6 +30,10 @@ external class WebApp { val viewportHeight: Float val viewportStableHeight: Float + val isVerticalSwipesEnabled: Boolean + fun enableVerticalSwipes() + fun disableVerticalSwipes() + val isClosingConfirmationEnabled: Boolean fun enableClosingConfirmation()