# Uses of Class it.tdlight.jni.TdApi.FileType (tdlight API 3.3.160 API)
use: package: it.tdlight.jni, class: TdApi, class: FileType

# 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 class` | `TdApi.FileTypeAnimation` | The file is an animation.
`static class` | `TdApi.FileTypeAudio` | The file is an audio file.
`static class` | `TdApi.FileTypeDocument` | The file is a document.
`static class` | `TdApi.FileTypeNone` | The data is not a file.
`static class` | `TdApi.FileTypePhoto` | The file is a photo.
`static class` | `TdApi.FileTypeProfilePhoto` | The file is a profile photo.
`static class` | `TdApi.FileTypeSecret` | The file was sent to a secret chat (the file type is not known to the server).
`static class` | `TdApi.FileTypeSecretThumbnail` | The file is a thumbnail of a file from a secret chat.
`static class` | `TdApi.FileTypeSecure` | The file is a file from Secure storage used for storing Telegram Passport files.
`static class` | `TdApi.FileTypeSticker` | The file is a sticker.
`static class` | `TdApi.FileTypeThumbnail` | The file is a thumbnail of another file.
`static class` | `TdApi.FileTypeUnknown` | The file type is not yet known.
`static class` | `TdApi.FileTypeVideo` | The file is a video.
`static class` | `TdApi.FileTypeVideoNote` | The file is a video note.
`static class` | `TdApi.FileTypeVoiceNote` | The file is a voice note.
`static 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.StorageStatisticsByFileType.`fileType` | File type.
`TdApi.FileType` | TdApi.UploadFile.`fileType` | File type; pass null if unknown.
`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
Constructor | Description
--- | ---
`GetRemoteFile​(String remoteFileId, TdApi.FileType fileType)` | Returns information about a file by its remote ID; 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.
`StorageStatisticsByFileType​(TdApi.FileType fileType, long size, int count)` | Contains the storage usage statistics for a specific file type.
`UploadFile​(TdApi.InputFile file, TdApi.FileType fileType, int priority)` | Asynchronously uploads a file to the cloud without sending it in a message.