update LinkPreviewsBot

This commit is contained in:
InsanusMokrassar 2024-01-09 17:57:49 +06:00
parent 94c014b308
commit 941afd0902
1 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ import dev.inmo.tgbotapi.utils.customEmoji
import dev.inmo.tgbotapi.utils.regular 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) { suspend fun main(vararg args: String) {
val botToken = args.first() 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") regular("I am support only content with text contains url only")
} }
} ?: return@onContentMessage } ?: return@onContentMessage
it.withContentOrNull<TextContent>() ?.let { it.withContentOrNull<TextedContent>() ?.let {
send( send(
it.chat, it.chat,
it.content.textSources, it.content.textSources,