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(