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)