mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2024-11-22 16:23:54 +00:00
sendData does not work with inlineKeyboard
This commit is contained in:
parent
2ae3e1165d
commit
71a047f867
@ -5,11 +5,9 @@ import dev.inmo.tgbotapi.extensions.api.send.*
|
|||||||
import dev.inmo.tgbotapi.extensions.behaviour_builder.*
|
import dev.inmo.tgbotapi.extensions.behaviour_builder.*
|
||||||
import dev.inmo.tgbotapi.extensions.behaviour_builder.triggers_handling.*
|
import dev.inmo.tgbotapi.extensions.behaviour_builder.triggers_handling.*
|
||||||
import dev.inmo.tgbotapi.extensions.utils.types.buttons.*
|
import dev.inmo.tgbotapi.extensions.utils.types.buttons.*
|
||||||
import io.ktor.application.call
|
import dev.inmo.tgbotapi.types.webapps.WebAppInfo
|
||||||
import io.ktor.http.content.files
|
import io.ktor.http.content.*
|
||||||
import io.ktor.http.content.static
|
import io.ktor.routing.*
|
||||||
import io.ktor.routing.get
|
|
||||||
import io.ktor.routing.routing
|
|
||||||
import io.ktor.server.tomcat.Tomcat
|
import io.ktor.server.tomcat.Tomcat
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import java.io.File
|
import java.io.File
|
||||||
@ -45,12 +43,13 @@ suspend fun main(vararg args: String) {
|
|||||||
onCommand("start") {
|
onCommand("start") {
|
||||||
reply(
|
reply(
|
||||||
it,
|
it,
|
||||||
"Button:",
|
"Button",
|
||||||
replyMarkup = inlineKeyboard {
|
replyMarkup = replyKeyboard {
|
||||||
row {
|
row {
|
||||||
webAppButton("Open", args[1])
|
webAppButton("Open WebApp", WebAppInfo(args[1]))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
allUpdatesFlow.subscribeSafelyWithoutExceptions(this) {
|
allUpdatesFlow.subscribeSafelyWithoutExceptions(this) {
|
||||||
|
Loading…
Reference in New Issue
Block a user