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]
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"

View File

@ -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

View File

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