From 98c33cb01a6f3ff8a211c1eb5f7a0edf1f402fd7 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Fri, 2 Oct 2020 18:08:14 +0600 Subject: [PATCH] start migration onto 0.28.5 --- ForwarderBot/src/main/kotlin/ForwarderBot.kt | 1 + gradle.properties | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ForwarderBot/src/main/kotlin/ForwarderBot.kt b/ForwarderBot/src/main/kotlin/ForwarderBot.kt index fc18b18..064a6e2 100644 --- a/ForwarderBot/src/main/kotlin/ForwarderBot.kt +++ b/ForwarderBot/src/main/kotlin/ForwarderBot.kt @@ -32,6 +32,7 @@ suspend fun main(vararg args: String) { "User ${user.id.chatId.toString().codeMarkdownV2()} " + "(${user.firstName} ${user.lastName}: ${user.username ?.username ?: "Without username"})".regularMarkdownV2() } is ForwardFromChannelInfo -> "Channel (".regularMarkdownV2() + (forwardInfo.channelChat).title.codeMarkdownV2() + ")".regularMarkdownV2() + is ForwardFromSupergroupInfo -> "Supergroup (".regularMarkdownV2() + (forwardInfo.group).title.codeMarkdownV2() + ")".regularMarkdownV2() } bot.sendTextMessage(message.chat, toAnswer, MarkdownV2) } diff --git a/gradle.properties b/gradle.properties index 8b66458..27787cf 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,4 +2,4 @@ kotlin.code.style=official org.gradle.parallel=true kotlin_version=1.4.10 -telegram_bot_api_version=0.28.4 +telegram_bot_api_version=0.28.5