From 941afd0902c01890bb91e3f5825875017c1df68b Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Tue, 9 Jan 2024 17:57:49 +0600 Subject: [PATCH] update LinkPreviewsBot --- LinkPreviewsBot/src/main/kotlin/LinkPreviewsBot.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LinkPreviewsBot/src/main/kotlin/LinkPreviewsBot.kt b/LinkPreviewsBot/src/main/kotlin/LinkPreviewsBot.kt index ad787f5..cc85073 100644 --- a/LinkPreviewsBot/src/main/kotlin/LinkPreviewsBot.kt +++ b/LinkPreviewsBot/src/main/kotlin/LinkPreviewsBot.kt @@ -24,7 +24,7 @@ import dev.inmo.tgbotapi.utils.customEmoji import dev.inmo.tgbotapi.utils.regular /** - * This bot will send info about user reactions in his PM with reply to message user reacted to + * This bot will reply with the same */ suspend fun main(vararg args: String) { val botToken = args.first() @@ -51,7 +51,7 @@ suspend fun main(vararg args: String) { regular("I am support only content with text contains url only") } } ?: return@onContentMessage - it.withContentOrNull() ?.let { + it.withContentOrNull() ?.let { send( it.chat, it.content.textSources,