1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-12-23 00:57:13 +00:00

fix mime_type of inline result document and video implementations

This commit is contained in:
InsanusMokrassar 2019-02-08 14:35:41 +08:00
parent a6d0925cfd
commit 9f3d678528
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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)