VideoNote

data class VideoNote(fileId: String, fileUniqueId: String, length: Int, duration: Int, thumb: PhotoSize?, fileSize: Int?)

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

Parameters

fileId

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

fileUniqueId

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.

length

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

duration

Duration of the video in seconds as defined by sender

thumb

Optional. Video thumbnail

fileSize

Optional. File size

Constructors

VideoNote
Link copied to clipboard
common
fun VideoNote(fileId: String, fileUniqueId: String, length: Int, duration: Int, thumb: PhotoSize? = null, fileSize: Int? = null)
Identifier for this file, which can be used to download or reuse the file

Functions

component1
Link copied to clipboard
common
operator fun component1(): String
component2
Link copied to clipboard
common
operator fun component2(): String
component3
Link copied to clipboard
common
operator fun component3(): Int
component4
Link copied to clipboard
common
operator fun component4(): Int
component5
Link copied to clipboard
common
operator fun component5(): PhotoSize?
component6
Link copied to clipboard
common
operator fun component6(): Int?
copy
Link copied to clipboard
common
fun copy(fileId: String, fileUniqueId: String, length: Int, duration: Int, thumb: PhotoSize? = null, fileSize: Int? = null): VideoNote
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

duration
Link copied to clipboard
common
val duration: Int
Duration of the video in seconds as defined by sender
fileId
Link copied to clipboard
common
val fileId: String
Identifier for this file, which can be used to download or reuse the file
fileSize
Link copied to clipboard
common
val fileSize: Int? = null
Optional.
fileUniqueId
Link copied to clipboard
common
val fileUniqueId: String
Unique identifier for this file, which is supposed to be the same over time and for different bots.
length
Link copied to clipboard
common
val length: Int
Video width and height (diameter of the video message) as defined by sender
thumb
Link copied to clipboard
common
val thumb: PhotoSize? = null
Optional.