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 fileName: String? = null, val mimeType: MimeType? = null, val fileSize: Long? = null) : TelegramMediaFile, CustomNamedMediaFile, MimedMediaFile, 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, fileName: String? = null, mimeType: MimeType? = null, fileSize: Long? = null)

Properties

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 = "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): TelegramMediaVideo
inline fun VideoFile.toTelegramMediaVideo(text: String? = null, parseMode: ParseMode? = null, spoilered: Boolean = false, showCaptionAboveMedia: Boolean = false): TelegramMediaVideo