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) } }