fixes after update

This commit is contained in:
InsanusMokrassar committed 2024-11-06 20:04:54 +06:00
1 parent defc83740d
commit 569f15330c
3 files changed
+11 -11

No files matched your search

+7 -7
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"
+1 -1
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
@@ -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)