1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2026-04-07 18:42:29 +00:00

add support of requestChat

This commit is contained in:
2026-04-06 16:13:29 +06:00
parent a0e748f9a9
commit 4b5aad2b85
3 changed files with 5 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ package dev.inmo.tgbotapi.webapps
import dev.inmo.tgbotapi.types.CustomEmojiId
import dev.inmo.tgbotapi.types.PreparedMessageId
import dev.inmo.tgbotapi.types.buttons.PreparedKeyboardButtonId
import dev.inmo.tgbotapi.utils.TelegramAPIUrlsKeeper
import dev.inmo.tgbotapi.webapps.accelerometer.Accelerometer
import dev.inmo.tgbotapi.webapps.biometric.BiometricManager
@@ -149,6 +150,8 @@ external class WebApp {
fun hideKeyboard()
fun requestChat(id: PreparedKeyboardButtonId, callback: ((Boolean) -> Unit)? = definedExternally)
// Start of generated part
@JsName("onEvent")