haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.InputFile

Synopsis

Documentation

data InputFile Source #

Points to a file

Constructors

InputFileId

A file defined by its unique identifier

Fields

InputFileRemote

A file defined by its remote identifier. The remote identifier is guaranteed to be usable only if the corresponding file is still accessible to the user and known to TDLib. For example, if the file is from a message, then the message must be not deleted and accessible to the user. If the file database is disabled, then the corresponding object with the file must be preloaded by the application

Fields

InputFileLocal

A file defined by a local path

Fields

InputFileGenerated

A file generated by the application. The application must handle updates updateFileGenerationStart and updateFileGenerationStop to generate the file when asked by TDLib

Fields

  • original_path :: Maybe Text

    Local path to a file from which the file is generated. The path doesn't have to be a valid path and is used by TDLib only to detect name and MIME type of the generated file

  • conversion :: Maybe Text

    String specifying the conversion applied to the original file; must be persistent across application restarts. Conversions beginning with # are reserved for internal TDLib usage

  • expected_size :: Maybe Int

    Expected size of the generated file, in bytes; pass 0 if unknown

Instances

Instances details
FromJSON InputFile Source # 
Instance details

Defined in TD.Data.InputFile

ToJSON InputFile Source # 
Instance details

Defined in TD.Data.InputFile

Show InputFile Source # 
Instance details

Defined in TD.Data.InputFile

Eq InputFile Source # 
Instance details

Defined in TD.Data.InputFile

ShortShow InputFile Source # 
Instance details

Defined in TD.Data.InputFile