VideoNote

@Serializable
data class VideoNote(val fileId: String, val fileUniqueId: String, val length: Int, val duration: Int, val thumbnail: PhotoSize? = null, val fileSize: Int? = null)

This object represents a video message (available in Telegram apps as of v.4.0).

Api reference

Constructors

Link copied to clipboard
constructor(fileId: String, fileUniqueId: String, length: Int, duration: Int, thumbnail: PhotoSize? = null, fileSize: Int? = null)

Properties

Link copied to clipboard

Duration of the video in seconds as defined by the sender

Link copied to clipboard

Identifier for this file, which can be used to download or reuse the file

Link copied to clipboard
val fileSize: Int? = null

Optional. File size in bytes

Link copied to clipboard

Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.

Link copied to clipboard
val length: Int

Video width and height (diameter of the video message) as defined by the sender

Link copied to clipboard
val thumbnail: PhotoSize? = null

Optional. Video thumbnail