FileType
public indirect enum FileType : Codable, Equatable, FunctionResult, TDEnum, EquatableEnum
Represents the type of a file
-
The data is not a file
Declaration
Swift
case none
-
The file is an animation
Declaration
Swift
case animation
-
The file is an audio file
Declaration
Swift
case audio
-
The file is a document
Declaration
Swift
case document
-
The file is a photo
Declaration
Swift
case photo
-
The file is a profile photo
Declaration
Swift
case profilePhoto
-
The file was sent to a secret chat (the file type is not known to the server)
Declaration
Swift
case secret
-
The file is a thumbnail of a file from a secret chat
Declaration
Swift
case secretThumbnail
-
The file is a file from Secure storage used for storing Telegram Passport files
Declaration
Swift
case secure
-
The file is a sticker
Declaration
Swift
case sticker
-
The file is a thumbnail of another file
Declaration
Swift
case thumbnail
-
The file type is not yet known
Declaration
Swift
case unknown
-
The file is a video
Declaration
Swift
case video
-
The file is a video note
Declaration
Swift
case videoNote
-
The file is a voice note
Declaration
Swift
case voiceNote
-
The file is a wallpaper or a background pattern
Declaration
Swift
case wallpaper