diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 92ea01f..7229d8d 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,14 +1,14 @@ [versions] -kotlin = "2.0.20" -kotlin-serialization = "1.7.2" +kotlin = "2.0.21" +kotlin-serialization = "1.7.3" -plagubot = "10.0.0" -tgbotapi = "18.2.0" -microutils = "0.22.2" +plagubot = "10.1.0" +tgbotapi = "20.0.0" +microutils = "0.23.0" kslog = "1.3.6" -krontab = "2.5.0" -plagubot-plugins = "0.23.0" +krontab = "2.6.1" +plagubot-plugins = "0.24.0" dokka = "1.9.20" diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 48c0a02..1e2fbf0 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/posts/src/commonMain/kotlin/sending/PostPublisher.kt b/posts/src/commonMain/kotlin/sending/PostPublisher.kt index 9189519..6135f09 100644 --- a/posts/src/commonMain/kotlin/sending/PostPublisher.kt +++ b/posts/src/commonMain/kotlin/sending/PostPublisher.kt @@ -40,13 +40,13 @@ class PostPublisher( contents.singleOrNull() ?.also { targetChatIds.forEach { targetChatId -> runCatching { - bot.copyMessage(targetChatId, it.chatId, it.messageId) + bot.copyMessage(fromChatId = it.chatId, messageId = it.messageId, toChatId = targetChatId) }.onFailure { _ -> runCatching { bot.forwardMessage( fromChatId = it.chatId, - toChatId = cachingChatId, - messageId = it.messageId + messageId = it.messageId, + toChatId = cachingChatId ) }.onSuccess { bot.copyMessage(targetChatId, it)