toggle menu
ktgbotapi
common
switch theme
search in API
tgbotapi.core
/
dev.inmo.tgbotapi.types.files
/
File
File
@
Serializable
data
class
File
(
val
fileId
:
FileId
,
val
fileUniqueId
:
TgFileUniqueId
,
val
fileSize
:
Long
?
=
null
)
:
TelegramMediaFile
Members
Members & Extensions
Constructors
File
Link copied to clipboard
constructor
(
fileId
:
FileId
,
fileUniqueId
:
TgFileUniqueId
,
fileSize
:
Long
?
=
null
)
Properties
file
Id
Link copied to clipboard
@
SerialName
(
value
=
"file_id"
)
open
override
val
fileId
:
FileId
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
Functions
as
Document
File
Link copied to clipboard
inline
fun
TelegramMediaFile
.
asDocumentFile
(
)
:
DocumentFile