mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-07-01 05:47:47 +00:00
24 lines
730 B
Kotlin
24 lines
730 B
Kotlin
|
package com.github.insanusmokrassar.TelegramBotAPI.types.files
|
||
|
|
||
|
import com.github.insanusmokrassar.TelegramBotAPI.types.files.abstracts.*
|
||
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.abstracts.FileId
|
||
|
import kotlinx.serialization.*
|
||
|
|
||
|
@Serializable
|
||
|
data class VideoNoteFile(
|
||
|
@SerialName(fileIdField)
|
||
|
override val fileId: FileId,
|
||
|
@SerialName("length")
|
||
|
override val width: Int,
|
||
|
@Optional
|
||
|
override val duration: Long? = null,
|
||
|
@Optional
|
||
|
override val thumb: PhotoSize? = null,
|
||
|
@SerialName(fileSizeField)
|
||
|
@Optional
|
||
|
override val fileSize: Long? = null
|
||
|
) : TelegramMediaFile, ThumbedMediaFile, PlayableMediaFile, SizedMediaFile {
|
||
|
override val height: Int
|
||
|
get() = width
|
||
|
}
|