diff --git a/ForwarderBot/src/main/kotlin/ForwarderBot.kt b/ForwarderBot/src/main/kotlin/ForwarderBot.kt index 6980ea7..fc18b18 100644 --- a/ForwarderBot/src/main/kotlin/ForwarderBot.kt +++ b/ForwarderBot/src/main/kotlin/ForwarderBot.kt @@ -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()}\"" diff --git a/gradle.properties b/gradle.properties index f566939..b9b4f69 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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