VideoFile

@Serializable
data class VideoFile(    val fileId: FileId,     val fileUniqueId: TgFileUniqueId,     val width: Int,     val height: Int,     val duration: Long? = null,     val thumbnail: PhotoSize? = null,     val cover: Photo? = null,     val startTimestamp: Seconds? = null,     val fileName: String? = null,     val mimeType: MimeType? = null,     val fileSize: Long? = null) : TelegramMediaFile, CustomNamedMediaFile, MimedMediaFile, CoveredMediaFile, CustomStartMediaFile, ThumbedMediaFile, PlayableMediaFile, SizedMediaFile, MediaContentVariant, UsefulAsPaidMediaFile

Constructors

Link copied to clipboard
constructor(    fileId: FileId,     fileUniqueId: TgFileUniqueId,     width: Int,     height: Int,     duration: Long? = null,     thumbnail: PhotoSize? = null,     cover: Photo? = null,     startTimestamp: Seconds? = null,     fileName: String? = null,     mimeType: MimeType? = null,     fileSize: Long? = null)

Properties

Link copied to clipboard
@SerialName(value = "cover")
open override val cover: Photo? = null
Link copied to clipboard
@SerialName(value = "duration")
open override val duration: Long? = null
Link copied to clipboard
@SerialName(value = "file_id")
open override val fileId: FileId
Link copied to clipboard
@SerialName(value = "file_name")
open override val fileName: String? = null
Link copied to clipboard
@SerialName(value = "file_size")
open override val fileSize: Long? = null
Link copied to clipboard
@SerialName(value = "file_unique_id")
open override val fileUniqueId: TgFileUniqueId
Link copied to clipboard
@SerialName(value = "height")
open override val height: Int
Link copied to clipboard
@SerialName(value = "mime_type")
open override val mimeType: MimeType? = null
Link copied to clipboard
@SerialName(value = "start_timestamp")
open override val startTimestamp: Seconds? = null
Link copied to clipboard
@SerialName(value = "thumbnail")
open override val thumbnail: PhotoSize? = null
Link copied to clipboard
@SerialName(value = "width")
open override val width: Int

Functions

Link copied to clipboard
Link copied to clipboard
inline fun VideoFile.toTelegramMediaVideo(    textSources: TextSourcesList,     spoilered: Boolean = false,     showCaptionAboveMedia: Boolean = false,     startTimestamp: Seconds? = this.startTimestamp): TelegramMediaVideo
inline fun VideoFile.toTelegramMediaVideo(    text: String? = null,     parseMode: ParseMode? = null,     spoilered: Boolean = false,     showCaptionAboveMedia: Boolean = false,     startTimestamp: Seconds? = this.startTimestamp): TelegramMediaVideo