fixes after update

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

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)