toggle menu
ktgbotapi
common
switch theme
search in API
tgbotapi.core
/
dev.inmo.tgbotapi.types.files
/
AnimationFile
Animation
File
@
Serializable
data
class
AnimationFile
(
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
,
MimedMediaFile
,
ThumbedMediaFile
,
PlayableMediaFile
,
CustomNamedMediaFile
,
SizedMediaFile
,
MediaContentVariant
Members
Members & Extensions
Constructors
Animation
File
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
duration
Link copied to clipboard
open
override
val
duration
:
Long
?
=
null
file
Id
Link copied to clipboard
@
SerialName
(
value
=
"file_id"
)
open
override
val
fileId
:
FileId
file
Name
Link copied to clipboard
@
SerialName
(
value
=
"file_name"
)
open
override
val
fileName
:
String
?
=
null
file
Size
Link copied to clipboard
@
SerialName
(
value
=
"file_size"
)
open
override
val
fileSize
:
Long
?
=
null
file
Unique
Id
Link copied to clipboard
@
SerialName
(
value
=
"file_unique_id"
)
open
override
val
fileUniqueId
:
TgFileUniqueId
height
Link copied to clipboard
open
override
val
height
:
Int
mime
Type
Link copied to clipboard
@
SerialName
(
value
=
"mime_type"
)
open
override
val
mimeType
:
MimeType
?
=
null
thumbnail
Link copied to clipboard
open
override
val
thumbnail
:
PhotoSize
?
=
null
width
Link copied to clipboard
open
override
val
width
:
Int
Functions
as
Document
File
Link copied to clipboard
inline
fun
TelegramMediaFile
.
asDocumentFile
(
)
:
DocumentFile