From cf5a4c0f61e847dd073c26b27c5d8c6dfec7eb4c Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 4 Sep 2022 16:11:54 +0600 Subject: [PATCH] fixes --- posts/src/commonMain/kotlin/sending/PostPublisher.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posts/src/commonMain/kotlin/sending/PostPublisher.kt b/posts/src/commonMain/kotlin/sending/PostPublisher.kt index 74ee48a..1521c55 100644 --- a/posts/src/commonMain/kotlin/sending/PostPublisher.kt +++ b/posts/src/commonMain/kotlin/sending/PostPublisher.kt @@ -41,7 +41,7 @@ class PostPublisher( return@forEach } val resultContents = contents.mapNotNull { - it.order to (bot.forwardMessage(cachingChatId, it.chatId, it.messageId).contentMessageOrNull() ?: return@mapNotNull null) + it.order to (bot.forwardMessage(toChatId = cachingChatId, fromChatId = it.chatId, messageId = it.messageId).contentMessageOrNull() ?: return@mapNotNull null) }.sortedBy { it.first }.mapNotNull { (_, it) -> it.withContentOrNull() ?: null.also { _ -> bot.copyMessage(targetChatId, it)