dataclass-only
/
com.github.omarmiatello.telegram
/
Video
Video
data class
Video
(file_id:
String
, file_unique_id:
String
, width:
Long
, height:
Long
, duration:
Long
, thumb:
PhotoSize
?, file_name:
String
?, mime_type:
String
?, file_size:
Long
?) :
TelegramModel
Content copied to clipboard
This object represents a video file.
Constructors
Properties
Constructors
Video
Link copied to clipboard
fun
Video
(file_id:
String
, file_unique_id:
String
, width:
Long
, height:
Long
, duration:
Long
, thumb:
PhotoSize
? = null, file_name:
String
? = null, mime_type:
String
? = null, file_size:
Long
? = null)
Content copied to clipboard
Creates a
Video
.
Properties
duration
Link copied to clipboard
val
duration
:
Long
Content copied to clipboard
Duration of the video in seconds as defined by sender
file_id
Link copied to clipboard
val
file_id
:
String
Content copied to clipboard
Identifier for this file, which can be used to download or reuse the file
file_name
Link copied to clipboard
val
file_name
:
String
? = null
Content copied to clipboard
Optional
.
file_size
Link copied to clipboard
val
file_size
:
Long
? = null
Content copied to clipboard
Optional
.
file_unique_id
Link copied to clipboard
val
file_unique_id
:
String
Content copied to clipboard
Unique identifier for this file, which is supposed to be the same over time and for different bots.
height
Link copied to clipboard
val
height
:
Long
Content copied to clipboard
Video height as defined by sender
mime_type
Link copied to clipboard
val
mime_type
:
String
? = null
Content copied to clipboard
Optional
.
thumb
Link copied to clipboard
val
thumb
:
PhotoSize
? = null
Content copied to clipboard
Optional
.
width
Link copied to clipboard
val
width
:
Long
Content copied to clipboard
Video width as defined by sender