fixes after update

This commit is contained in:
InsanusMokrassar 2024-11-06 20:04:54 +06:00
parent defc83740d
commit 569f15330c
3 changed files with 11 additions and 11 deletions

View File

@ -1,14 +1,14 @@
[versions] [versions]
kotlin = "2.0.20" kotlin = "2.0.21"
kotlin-serialization = "1.7.2" kotlin-serialization = "1.7.3"
plagubot = "10.0.0" plagubot = "10.1.0"
tgbotapi = "18.2.0" tgbotapi = "20.0.0"
microutils = "0.22.2" microutils = "0.23.0"
kslog = "1.3.6" kslog = "1.3.6"
krontab = "2.5.0" krontab = "2.6.1"
plagubot-plugins = "0.23.0" plagubot-plugins = "0.24.0"
dokka = "1.9.20" dokka = "1.9.20"

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists 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 zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

View File

@ -40,13 +40,13 @@ class PostPublisher(
contents.singleOrNull() ?.also { contents.singleOrNull() ?.also {
targetChatIds.forEach { targetChatId -> targetChatIds.forEach { targetChatId ->
runCatching { runCatching {
bot.copyMessage(targetChatId, it.chatId, it.messageId) bot.copyMessage(fromChatId = it.chatId, messageId = it.messageId, toChatId = targetChatId)
}.onFailure { _ -> }.onFailure { _ ->
runCatching { runCatching {
bot.forwardMessage( bot.forwardMessage(
fromChatId = it.chatId, fromChatId = it.chatId,
toChatId = cachingChatId, messageId = it.messageId,
messageId = it.messageId toChatId = cachingChatId
) )
}.onSuccess { }.onSuccess {
bot.copyMessage(targetChatId, it) bot.copyMessage(targetChatId, it)