# Uses of Class
it.tdlight.jni.TdApi.FileType

## Uses of TdApi.FileType in it.tdlight.jni

Subclasses of TdApi.FileType in it.tdlight.jni
Modifier and Type
Class
Description
`static final class`
`TdApi.FileTypeAnimation`
The file is an animation.
`static final class`
`TdApi.FileTypeAudio`
The file is an audio file.
`static final class`
`TdApi.FileTypeDocument`
The file is a document.
`static final class`
`TdApi.FileTypeNone`
The data is not a file.
`static final class`
`TdApi.FileTypeNotificationSound`
The file is a notification sound.
`static final class`
`TdApi.FileTypePhoto`
The file is a photo.
`static final class`
`TdApi.FileTypePhotoStory`
The file is a photo published as a story.
`static final class`
`TdApi.FileTypeProfilePhoto`
The file is a profile photo.
`static final class`
`TdApi.FileTypeSecret`
The file was sent to a secret chat (the file type is not known to the server).
`static final class`
`TdApi.FileTypeSecretThumbnail`
The file is a thumbnail of a file from a secret chat.
`static final class`
`TdApi.FileTypeSecure`
The file is a file from Secure storage used for storing Telegram Passport files.
`static final class`
`TdApi.FileTypeSticker`
The file is a sticker.
`static final class`
`TdApi.FileTypeThumbnail`
The file is a thumbnail of another file.
`static final class`
`TdApi.FileTypeUnknown`
The file type is not yet known.
`static final class`
`TdApi.FileTypeVideo`
The file is a video.
`static final class`
`TdApi.FileTypeVideoNote`
The file is a video note.
`static final class`
`TdApi.FileTypeVideoStory`
The file is a video published as a story.
`static final class`
`TdApi.FileTypeVoiceNote`
The file is a voice note.
`static final class`
`TdApi.FileTypeWallpaper`
The file is a wallpaper or a background pattern.
Fields in it.tdlight.jni declared as TdApi.FileType
Modifier and Type
Field
Description
`TdApi.FileType`
TdApi.GetRemoteFile.`fileType`
File type; pass null if unknown.
`TdApi.FileType`
TdApi.NetworkStatisticsEntryFile.`fileType`
Type of the file the data is part of; pass null if the data isn't related to files.
`TdApi.FileType`
TdApi.PreliminaryUploadFile.`fileType`
File type; pass null if unknown.
`TdApi.FileType`
TdApi.StorageStatisticsByFileType.`fileType`
File type.
`TdApi.FileType[]`
TdApi.OptimizeStorage.`fileTypes`
If non-empty, only files with the given types are considered.
Constructors in it.tdlight.jni with parameters of type TdApi.FileType
Modifier
Constructor
Description
``
`GetRemoteFile(String remoteFileId, TdApi.FileType fileType)`
Returns information about a file by its remote identifier; this is an offline request.
``
`NetworkStatisticsEntryFile(TdApi.FileType fileType, TdApi.NetworkType networkType, long sentBytes, long receivedBytes)`
Contains information about the total amount of data that was used to send and receive files.
``
`OptimizeStorage(long size, int ttl, int count, int immunityDelay, TdApi.FileType[] fileTypes, long[] chatIds, long[] excludeChatIds, boolean returnDeletedFileStatistics, int chatLimit)`
Optimizes storage usage, i.e.
``
`PreliminaryUploadFile(TdApi.InputFile file, TdApi.FileType fileType, int priority)`
Preliminary uploads a file to the cloud before sending it in a message, which can be useful for uploading of being recorded voice and video notes.
``
`StorageStatisticsByFileType(TdApi.FileType fileType, long size, int count)`
Contains the storage usage statistics for a specific file type.