mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2024-12-22 08:37:18 +00:00
update LinkPreviewsBot
This commit is contained in:
parent
94c014b308
commit
941afd0902
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user