mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2026-09-13 11:34:13 +00:00
Compare commits
2 Commits
c88f84011f
...
7090db148e
| Author | SHA1 | Date | |
|---|---|---|---|
| 7090db148e | |||
| 7d786f0e06 |
@@ -2,6 +2,7 @@ import dev.inmo.micro_utils.coroutines.subscribeSafelyWithoutExceptions
|
||||
import dev.inmo.tgbotapi.extensions.api.EditLiveLocationInfo
|
||||
import dev.inmo.tgbotapi.extensions.api.chat.get.getChat
|
||||
import dev.inmo.tgbotapi.extensions.api.edit.edit
|
||||
import dev.inmo.tgbotapi.extensions.api.edit.location.live.stopLiveLocation
|
||||
import dev.inmo.tgbotapi.extensions.api.handleLiveLocation
|
||||
import dev.inmo.tgbotapi.extensions.api.send.*
|
||||
import dev.inmo.tgbotapi.extensions.behaviour_builder.expectations.waitMessageDataCallbackQuery
|
||||
@@ -75,7 +76,7 @@ suspend fun main(vararg args: String) {
|
||||
|
||||
sendingJob.cancel() // ends live location
|
||||
currentMessageState.value ?.let {
|
||||
edit(it, replyMarkup = null) // removing reply keyboard
|
||||
stopLiveLocation(it, replyMarkup = null)
|
||||
}
|
||||
}
|
||||
allUpdatesFlow.subscribeSafelyWithoutExceptions(this) { println(it) }
|
||||
|
||||
@@ -71,7 +71,7 @@ fun main() {
|
||||
}
|
||||
}
|
||||
})
|
||||
appendText("Exit button")
|
||||
appendText("Answer in chat button")
|
||||
} ?: window.alert("Unable to load body")
|
||||
|
||||
document.body ?.appendElement("p", {})
|
||||
|
||||
@@ -5,7 +5,7 @@ org.gradle.jvmargs=-Xmx2g
|
||||
|
||||
|
||||
kotlin_version=1.9.20
|
||||
telegram_bot_api_version=9.3.0-branch_9.3.0-build1918
|
||||
telegram_bot_api_version=9.3.0
|
||||
micro_utils_version=0.20.12
|
||||
serialization_version=1.6.0
|
||||
ktor_version=2.3.5
|
||||
|
||||
Reference in New Issue
Block a user