mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-04-07 10:32:44 +00:00
add support of requestChat
This commit is contained in:
@@ -7,5 +7,5 @@ import kotlinx.serialization.Serializable
|
|||||||
@Serializable
|
@Serializable
|
||||||
data class PreparedKeyboardButton(
|
data class PreparedKeyboardButton(
|
||||||
@SerialName(idField)
|
@SerialName(idField)
|
||||||
val id: PreparedKeyboardId
|
val id: PreparedKeyboardButtonId
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,6 +5,6 @@ import kotlin.jvm.JvmInline
|
|||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
@JvmInline
|
@JvmInline
|
||||||
value class PreparedKeyboardId(
|
value class PreparedKeyboardButtonId(
|
||||||
val string: String
|
val string: String
|
||||||
)
|
)
|
||||||
@@ -4,6 +4,7 @@ package dev.inmo.tgbotapi.webapps
|
|||||||
|
|
||||||
import dev.inmo.tgbotapi.types.CustomEmojiId
|
import dev.inmo.tgbotapi.types.CustomEmojiId
|
||||||
import dev.inmo.tgbotapi.types.PreparedMessageId
|
import dev.inmo.tgbotapi.types.PreparedMessageId
|
||||||
|
import dev.inmo.tgbotapi.types.buttons.PreparedKeyboardButtonId
|
||||||
import dev.inmo.tgbotapi.utils.TelegramAPIUrlsKeeper
|
import dev.inmo.tgbotapi.utils.TelegramAPIUrlsKeeper
|
||||||
import dev.inmo.tgbotapi.webapps.accelerometer.Accelerometer
|
import dev.inmo.tgbotapi.webapps.accelerometer.Accelerometer
|
||||||
import dev.inmo.tgbotapi.webapps.biometric.BiometricManager
|
import dev.inmo.tgbotapi.webapps.biometric.BiometricManager
|
||||||
@@ -149,6 +150,8 @@ external class WebApp {
|
|||||||
|
|
||||||
fun hideKeyboard()
|
fun hideKeyboard()
|
||||||
|
|
||||||
|
fun requestChat(id: PreparedKeyboardButtonId, callback: ((Boolean) -> Unit)? = definedExternally)
|
||||||
|
|
||||||
// Start of generated part
|
// Start of generated part
|
||||||
|
|
||||||
@JsName("onEvent")
|
@JsName("onEvent")
|
||||||
|
|||||||
Reference in New Issue
Block a user