diff --git a/CHANGELOG.md b/CHANGELOG.md index 77bcf21..357532a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 0.31.0 + +* `Kotlin`: `2.3.21` +* `MicroUtils`: `0.30.0` +* `Exposed`: `1.3.1` +* `PlaguBot`: `12.0.0` +* `TgBotAPI`: `35.1.0` +* `Serialization`: `1.11.0` + ## 0.30.0 * `Kotlin`: `2.3.20` diff --git a/cache/content/common/src/commonMain/kotlin/dev/inmo/tgbotapi/libraries/cache/media/common/DefaultMessageContentCache.kt b/cache/content/common/src/commonMain/kotlin/dev/inmo/tgbotapi/libraries/cache/media/common/DefaultMessageContentCache.kt index dbc69fa..8f1634a 100644 --- a/cache/content/common/src/commonMain/kotlin/dev/inmo/tgbotapi/libraries/cache/media/common/DefaultMessageContentCache.kt +++ b/cache/content/common/src/commonMain/kotlin/dev/inmo/tgbotapi/libraries/cache/media/common/DefaultMessageContentCache.kt @@ -92,7 +92,7 @@ class DefaultMessageContentCache( if (savedSimpleContent is MediaContent && !with(mediaFileActualityChecker) { bot.isActual(savedSimpleContent) }) { val savedFileContentAllocator = messagesFilesCache.get(k) ?: error("Unexpected absence of $k file for content ($simpleMessageContentCache)") val newContent = bot.execute( - when (savedSimpleContent.asTelegramMedia()) { + when (val content = savedSimpleContent.asTelegramMedia()) { is TelegramMediaAnimation -> SendAnimation( filesRefreshingChatId, savedFileContentAllocator, @@ -118,6 +118,12 @@ class DefaultMessageContentCache( savedFileContentAllocator, disableNotification = true ) + is TelegramMediaLivePhoto -> SendLivePhoto( + chatId = filesRefreshingChatId, + livePhoto = content.file, + photo = content.photo, + disableNotification = true + ) } ) diff --git a/gradle.properties b/gradle.properties index 71acffa..f9450c5 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,17 +6,17 @@ kotlin.incremental=true kotlin.incremental.js=true -kotlin_version=2.3.20 +kotlin_version=2.3.21 kotlin_serialisation_core_version=1.11.0 github_release_plugin_version=2.5.2 -tgbotapi_version=33.1.0 -micro_utils_version=0.29.2 -exposed_version=1.2.0 -plagubot_version=11.2.0 +tgbotapi_version=35.1.0 +micro_utils_version=0.30.0 +exposed_version=1.3.1 +plagubot_version=12.0.0 -nmcp_version=1.4.4 +nmcp_version=1.6.0 # Dokka @@ -25,4 +25,4 @@ dokka_version=2.2.0 # Project data group=dev.inmo -version=0.30.0 +version=0.31.0