mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2024-12-22 16:47:18 +00:00
update telegram bot api
This commit is contained in:
parent
1c509ed8cd
commit
293173a7a8
@ -24,7 +24,7 @@ suspend fun main(vararg args: String) {
|
||||
|
||||
bot.startGettingFlowsUpdatesByLongPolling(scope = scope) {
|
||||
messageFlow.asContentMessagesFlow().mapNotNull { it as? PossiblyForwardedMessage }.onEach { message ->
|
||||
safely {
|
||||
safely({ it.printStackTrace() }) {
|
||||
val toAnswer = when (val forwardInfo = message.forwardInfo) {
|
||||
null -> "There is no forward info"
|
||||
is AnonymousForwardInfo -> "Anonymous user which signed as \"${forwardInfo.senderName.codeMarkdownV2()}\""
|
||||
|
@ -1,5 +1,5 @@
|
||||
kotlin.code.style=official
|
||||
org.gradle.parallel=true
|
||||
|
||||
kotlin_version=1.4.0
|
||||
telegram_bot_api_version=0.28.0
|
||||
kotlin_version=1.4.10
|
||||
telegram_bot_api_version=0.28.1
|
||||
|
Loading…
Reference in New Issue
Block a user