mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-04-05 09:32:38 +00:00
remove optional
This commit is contained in:
@@ -10,16 +10,11 @@ import kotlinx.serialization.*
|
||||
data class InputMediaAnimation(
|
||||
@Transient
|
||||
override val file: InputFile = throw IllegalStateException("Must be created with file"),
|
||||
@Optional
|
||||
override val caption: String? = null,
|
||||
@SerialName(parseModeField)
|
||||
@Optional
|
||||
override val parseMode: ParseMode? = null,
|
||||
@Optional
|
||||
override val width: Int? = null,
|
||||
@Optional
|
||||
override val height: Int? = null,
|
||||
@Optional
|
||||
override val duration: Long? = null,
|
||||
@Transient
|
||||
override val thumb: InputFile? = null
|
||||
|
||||
@@ -11,16 +11,11 @@ import kotlinx.serialization.*
|
||||
data class InputMediaAudio(
|
||||
@Transient
|
||||
override val file: InputFile = throw IllegalStateException("Must be created with file"),
|
||||
@Optional
|
||||
override val caption: String? = null,
|
||||
@SerialName(parseModeField)
|
||||
@Optional
|
||||
override val parseMode: ParseMode? = null,
|
||||
@Optional
|
||||
override val duration: Long? = null,
|
||||
@Optional
|
||||
override val performer: String? = null,
|
||||
@Optional
|
||||
override val title: String? = null,
|
||||
override val thumb: InputFile? = null
|
||||
) : InputMedia, DuratedInputMedia, ThumbedInputMedia, TitledInputMedia, CaptionedInputMedia, Performerable {
|
||||
|
||||
@@ -10,10 +10,8 @@ import kotlinx.serialization.*
|
||||
data class InputMediaDocument(
|
||||
@Transient
|
||||
override val file: InputFile = throw IllegalStateException("Must be created with file"),
|
||||
@Optional
|
||||
override val caption: String? = null,
|
||||
@SerialName(parseModeField)
|
||||
@Optional
|
||||
override val parseMode: ParseMode? = null,
|
||||
@Transient
|
||||
override val thumb: InputFile? = null
|
||||
|
||||
@@ -11,10 +11,8 @@ import kotlinx.serialization.*
|
||||
data class InputMediaPhoto(
|
||||
@Transient
|
||||
override val file: InputFile = throw IllegalStateException("Must be created with file"),
|
||||
@Optional
|
||||
override val caption: String? = null,
|
||||
@SerialName(parseModeField)
|
||||
@Optional
|
||||
override val parseMode: ParseMode? = null
|
||||
) : InputMedia, CaptionedInputMedia, MediaGroupMemberInputMedia {
|
||||
override val type: String = "photo"
|
||||
|
||||
@@ -10,16 +10,11 @@ import kotlinx.serialization.*
|
||||
data class InputMediaVideo(
|
||||
@Transient
|
||||
override val file: InputFile = throw IllegalStateException("Must be created with file"),
|
||||
@Optional
|
||||
override val caption: String? = null,
|
||||
@SerialName(parseModeField)
|
||||
@Optional
|
||||
override val parseMode: ParseMode? = null,
|
||||
@Optional
|
||||
override val width: Int? = null,
|
||||
@Optional
|
||||
override val height: Int? = null,
|
||||
@Optional
|
||||
override val duration: Long? = null,
|
||||
@Transient
|
||||
override val thumb: InputFile? = null
|
||||
|
||||
Reference in New Issue
Block a user