From 9f3d6785282b3ad3abfd18510e68cba31a49a8a3 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Fri, 8 Feb 2019 14:35:41 +0800 Subject: [PATCH] fix mime_type of inline result document and video implementations --- .../InlineQueryResult/InlineQueryResultDocumentImpl.kt | 4 ++-- .../InlineQueryResult/InlineQueryResultVideoImpl.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/InlineQueries/InlineQueryResult/InlineQueryResultDocumentImpl.kt b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/InlineQueries/InlineQueryResult/InlineQueryResultDocumentImpl.kt index 182ad61929..f6a2dce048 100644 --- a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/InlineQueries/InlineQueryResult/InlineQueryResultDocumentImpl.kt +++ b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/InlineQueries/InlineQueryResult/InlineQueryResultDocumentImpl.kt @@ -18,6 +18,8 @@ data class InlineQueryResultDocumentImpl( override val url: String, @SerialName(titleField) override val title: String, + @SerialName(mimeTypeField) + override val mimeType: String, @SerialName(thumbUrlField) @Optional override val thumbUrl: String? = null, @@ -27,8 +29,6 @@ data class InlineQueryResultDocumentImpl( @SerialName(thumbHeightField) @Optional override val thumbHeight: Int? = null, - @SerialName(mimeTypeField) - override val mimeType: String? = null, @SerialName(descriptionField) @Optional override val description: String? = null, diff --git a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/InlineQueries/InlineQueryResult/InlineQueryResultVideoImpl.kt b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/InlineQueries/InlineQueryResult/InlineQueryResultVideoImpl.kt index ca07faac35..df32e33267 100644 --- a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/InlineQueries/InlineQueryResult/InlineQueryResultVideoImpl.kt +++ b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/InlineQueries/InlineQueryResult/InlineQueryResultVideoImpl.kt @@ -19,7 +19,7 @@ data class InlineQueryResultVideoImpl( @SerialName(thumbUrlField) override val thumbUrl: String, @SerialName(mimeTypeField) - override val mimeType: String? = null, + override val mimeType: String, @SerialName(titleField) override val title: String, @SerialName(videoWidthField)