From db7de6edf847e4436322d3e4fb0e15d1634227c1 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Tue, 24 Oct 2023 15:51:08 +0600 Subject: [PATCH 1/3] start 9.2.3 --- CHANGELOG.md | 2 ++ gradle.properties | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 74424cfcaf..5734656cfb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # TelegramBotAPI changelog +## 9.2.3 + ## 9.2.2 * `Core`: diff --git a/gradle.properties b/gradle.properties index 038e59522d..e06b203da7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,4 +6,4 @@ kotlin.incremental=true kotlin.incremental.js=true library_group=dev.inmo -library_version=9.2.2 +library_version=9.2.3 From c49f400201f86205c390a4cb6b2bfbdf21a77012 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Tue, 24 Oct 2023 15:52:06 +0600 Subject: [PATCH 2/3] fix in VoiceContent#createResend --- CHANGELOG.md | 3 +++ .../types/message/content/VoiceContent.kt | 21 ++++++++++--------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5734656cfb..9d70e47975 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## 9.2.3 +* `Core`: + * Fix in `VoiceContent#createResend` + ## 9.2.2 * `Core`: diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/content/VoiceContent.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/content/VoiceContent.kt index 075f99ec31..7e7deceea8 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/content/VoiceContent.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/content/VoiceContent.kt @@ -10,6 +10,7 @@ import dev.inmo.tgbotapi.types.MessageThreadId import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup import dev.inmo.tgbotapi.types.files.VoiceFile import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage +import dev.inmo.tgbotapi.types.threadId import kotlinx.serialization.Serializable @Serializable @@ -27,16 +28,16 @@ data class VoiceContent( allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup? ): Request> = SendVoice( - chatId, - media.fileId, - textSources, - media.duration, - messageThreadId, - disableNotification, - protectContent, - replyToMessageId, - allowSendingWithoutReply, - replyMarkup + chatId = chatId, + voice = media.fileId, + entities = textSources, + threadId = messageThreadId, + duration = media.duration, + disableNotification = disableNotification, + protectContent = protectContent, + replyToMessageId = replyToMessageId, + allowSendingWithoutReply = allowSendingWithoutReply, + replyMarkup = replyMarkup ) override fun asTelegramMedia(): TelegramMediaAudio = TelegramMediaAudio( From edb16d710795c3bc884e3e6d107e399cebb14a35 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Tue, 24 Oct 2023 15:55:37 +0600 Subject: [PATCH 3/3] update gradle wrapper --- gradle/wrapper/gradle-wrapper.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 4a71a623f6..7182a7312b 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.2-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-bin.zip