From 3b269711526179bc20cb19a4075370433ff915d6 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Tue, 8 Nov 2022 17:00:53 +0600 Subject: [PATCH] fixes --- .../ResenderBotLib/src/commonMain/kotlin/ResenderBot.kt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ResenderBot/ResenderBotLib/src/commonMain/kotlin/ResenderBot.kt b/ResenderBot/ResenderBotLib/src/commonMain/kotlin/ResenderBot.kt index 5a11989..4e0030d 100644 --- a/ResenderBot/ResenderBotLib/src/commonMain/kotlin/ResenderBot.kt +++ b/ResenderBot/ResenderBotLib/src/commonMain/kotlin/ResenderBot.kt @@ -8,6 +8,7 @@ import dev.inmo.tgbotapi.extensions.behaviour_builder.filters.CommonMessageFilte import dev.inmo.tgbotapi.extensions.behaviour_builder.filters.MessageFilterByChat import dev.inmo.tgbotapi.extensions.behaviour_builder.triggers_handling.* import dev.inmo.tgbotapi.extensions.utils.shortcuts.* +import dev.inmo.tgbotapi.utils.extensions.threadIdOrNull import kotlinx.coroutines.* suspend fun activateResenderBot( @@ -25,7 +26,13 @@ suspend fun activateResenderBot( val chat = it.chat val answer = withTypingAction(chat) { - executeUnsafe(it.content.createResend(chat.id, replyToMessageId = it.messageId)) { + executeUnsafe( + it.content.createResend( + chat.id, + messageThreadId = it.threadIdOrNull, + replyToMessageId = it.messageId + ) + ) { it.forEach(print) } }