update telegram bot api

This commit is contained in:
InsanusMokrassar 2020-09-12 17:04:59 +06:00
parent 1c509ed8cd
commit 293173a7a8
2 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ suspend fun main(vararg args: String) {
bot.startGettingFlowsUpdatesByLongPolling(scope = scope) { bot.startGettingFlowsUpdatesByLongPolling(scope = scope) {
messageFlow.asContentMessagesFlow().mapNotNull { it as? PossiblyForwardedMessage }.onEach { message -> messageFlow.asContentMessagesFlow().mapNotNull { it as? PossiblyForwardedMessage }.onEach { message ->
safely { safely({ it.printStackTrace() }) {
val toAnswer = when (val forwardInfo = message.forwardInfo) { val toAnswer = when (val forwardInfo = message.forwardInfo) {
null -> "There is no forward info" null -> "There is no forward info"
is AnonymousForwardInfo -> "Anonymous user which signed as \"${forwardInfo.senderName.codeMarkdownV2()}\"" is AnonymousForwardInfo -> "Anonymous user which signed as \"${forwardInfo.senderName.codeMarkdownV2()}\""

View File

@ -1,5 +1,5 @@
kotlin.code.style=official kotlin.code.style=official
org.gradle.parallel=true org.gradle.parallel=true
kotlin_version=1.4.0 kotlin_version=1.4.10
telegram_bot_api_version=0.28.0 telegram_bot_api_version=0.28.1