mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-04-07 02:22:27 +00:00
add support of requestChat
This commit is contained in:
@@ -7,5 +7,5 @@ import kotlinx.serialization.Serializable
|
||||
@Serializable
|
||||
data class PreparedKeyboardButton(
|
||||
@SerialName(idField)
|
||||
val id: PreparedKeyboardId
|
||||
val id: PreparedKeyboardButtonId
|
||||
)
|
||||
|
||||
@@ -5,6 +5,6 @@ import kotlin.jvm.JvmInline
|
||||
|
||||
@Serializable
|
||||
@JvmInline
|
||||
value class PreparedKeyboardId(
|
||||
value class PreparedKeyboardButtonId(
|
||||
val string: String
|
||||
)
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user