mirror of
https://github.com/InsanusMokrassar/PlaguPoster.git
synced 2024-11-17 13:33:47 +00:00
fixes after update
This commit is contained in:
parent
defc83740d
commit
569f15330c
@ -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"
|
||||||
|
|
||||||
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@ -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
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user