diff --git a/CHANGELOG.md b/CHANGELOG.md index 650260429b..0b10294d26 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,11 @@ This release become possible thanks to [Anton Lakotka](https://youtrack.jetbrain * `Ktor`: `2.3.4` -> `2.3.5` * `MicroUtils`: `0.19.9` -> `0.20.8` +## 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(