From bd7e8ed55fd526bcf999fe64e77220cf893184fa Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Thu, 5 Mar 2026 21:38:05 +0600 Subject: [PATCH] update dependencies --- gradle/libs.versions.toml | 12 ++++++------ .../tgbotapi/extensions/api/send/SendMessageDraft.kt | 8 ++++---- .../expectations/WaitEditedContentMessage.kt | 2 +- .../extensions/utils/extensions/raw/Message.kt | 2 +- .../kotlin/dev/inmo/tgbotapi/webapps/BottomButton.kt | 1 + 5 files changed, 13 insertions(+), 12 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 560fd59cb7..362e59403f 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,20 +1,20 @@ [versions] -kotlin = "2.2.21" -kotlin-serialization = "1.9.0" +kotlin = "2.3.10" +kotlin-serialization = "1.10.0" kotlin-coroutines = "1.10.2" javax-activation = "1.1.1" korlibs = "5.4.0" uuid = "0.8.4" -ktor = "3.3.2" +ktor = "3.4.1" -ksp = "2.3.2" +ksp = "2.3.6" kotlin-poet = "2.2.0" -microutils = "0.26.9" -kslog = "1.5.2" +microutils = "0.29.1" +kslog = "1.6.0" versions = "0.53.0" diff --git a/tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/send/SendMessageDraft.kt b/tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/send/SendMessageDraft.kt index 0de5b18461..c576b2b472 100644 --- a/tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/send/SendMessageDraft.kt +++ b/tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/send/SendMessageDraft.kt @@ -109,7 +109,7 @@ public suspend fun TelegramBot.sendMessageDraft( parseMode: ParseMode? = null, threadId: MessageThreadId? = chat.id.threadId ): Boolean = sendMessageDraft( - chatId = chat.id as IdChatIdentifier, + chatId = chat.id, draftId = draftId, text = text, parseMode = parseMode, @@ -136,7 +136,7 @@ public suspend fun TelegramBot.sendMessageDraft( entities: TextSourcesList, threadId: MessageThreadId? = chat.id.threadId ): Boolean = sendMessageDraft( - chatId = chat.id as IdChatIdentifier, + chatId = chat.id, draftId = draftId, entities = entities, threadId = threadId @@ -175,7 +175,7 @@ public suspend fun TelegramBot.sendMessageDraft( threadId: MessageThreadId? = chat.id.threadId, builderBody: EntitiesBuilderBody ): Boolean = sendMessageDraft( - chatId = chat.id as IdChatIdentifier, + chatId = chat.id, draftId = draftId, separator = separator, threadId = threadId, @@ -189,7 +189,7 @@ public suspend fun TelegramBot.sendMessageDraft( threadId: MessageThreadId? = chat.id.threadId, builderBody: EntitiesBuilderBody ): Boolean = sendMessageDraft( - chatId = chat.id as IdChatIdentifier, + chatId = chat.id, draftId = draftId, separator = separator, threadId = threadId, diff --git a/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitEditedContentMessage.kt b/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitEditedContentMessage.kt index 850080194d..2778b701ee 100644 --- a/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitEditedContentMessage.kt +++ b/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitEditedContentMessage.kt @@ -29,7 +29,7 @@ inline fun BehaviourContext.waitEditedContentMessag else -> return@expectFlow emptyList() } messages.mapNotNull { message -> - (message as CommonMessage<*>).withContent() + message.withContent() } } diff --git a/tgbotapi.utils/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/utils/extensions/raw/Message.kt b/tgbotapi.utils/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/utils/extensions/raw/Message.kt index 1b9ba7f042..3db0317ef5 100644 --- a/tgbotapi.utils/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/utils/extensions/raw/Message.kt +++ b/tgbotapi.utils/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/utils/extensions/raw/Message.kt @@ -168,7 +168,7 @@ inline val Message.migrate_to_chat_id: IdChatIdentifier? @RiskFeature(RawFieldsUsageWarning) inline val Message.migrate_from_chat_id: IdChatIdentifier? get() = asChatEventMessage() ?.chatEvent ?.let { - it ?.asSupergroupChatCreated() ?.migratedFrom ?: it ?.asMigratedToSupergroup() ?.migratedFrom + it.asSupergroupChatCreated() ?.migratedFrom ?: it.asMigratedToSupergroup() ?.migratedFrom } @RiskFeature(RawFieldsUsageWarning) inline val Message.pinned_message: Message? diff --git a/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/BottomButton.kt b/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/BottomButton.kt index ffca3f76e7..6f0accb140 100644 --- a/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/BottomButton.kt +++ b/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/BottomButton.kt @@ -7,6 +7,7 @@ import kotlin.js.json external class BottomButton { val text: String + @Suppress("INLINE_CLASS_IN_EXTERNAL_DECLARATION_WARNING") val iconCustomEmojiId: CustomEmojiId? fun setText(text: String): BottomButton