From bf1e353615c646ac77f1688f67ca9439ede35882 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Fri, 6 Nov 2020 00:05:05 +0600 Subject: [PATCH] fix build --- .../kotlin/dev/inmo/tgbotapi/types/files/VoiceFile.kt | 5 +++-- .../inmo/tgbotapi/types/message/content/LocationContent.kt | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/files/VoiceFile.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/files/VoiceFile.kt index f2bea226f2..41be71b854 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/files/VoiceFile.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/files/VoiceFile.kt @@ -23,5 +23,6 @@ data class VoiceFile( fun VoiceFile.asAudioFile( performer: String? = null, - title: String? = null -) = AudioFile(fileId, fileUniqueId, duration, performer, title, mimeType, fileSize) + title: String? = null, + fileName: String? = null +) = AudioFile(fileId, fileUniqueId, duration, performer, title, fileName, mimeType, fileSize) diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/content/LocationContent.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/content/LocationContent.kt index 12afc0b413..c9632e6a77 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/content/LocationContent.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/content/LocationContent.kt @@ -17,6 +17,7 @@ data class LocationContent( chatId: ChatIdentifier, disableNotification: Boolean, replyToMessageId: MessageIdentifier?, + allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup? ): Request> = when (location) { is StaticLocation -> SendStaticLocation(