AddFileToDownloads class

Adds a file from a message to the list of file downloads. Download progress and completion of the download will be notified through updateFile updates..

Returns File.

Inheritance
Available Extensions

Constructors

AddFileToDownloads({required int file_id, required int chat_id, required int message_id, required int priority, int? extra, int? clientId})
Adds a file from a message to the list of file downloads. Download progress and completion of the download will be notified through updateFile updates.

Properties

chat_id int
Chat identifier of the message with the file.
read / write
clientId int?
TDLib client instance identifier, for which the response was received.
read / writeoverride
extra int?
Request identifier. Must be non-zero.
read / writeoverride
file_id int
Identifier of the file to download.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
message_id int
Message identifier.
read / write
priority int
Priority of the download (1-32). The higher the priority, the earlier the file will be downloaded. If the priorities of two files are equal, then the last one for which downloadFile/addFileToDownloads was called will be downloaded first.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Object to Map serializer
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromMap(Map<String, dynamic>? _map) AddFileToDownloads?
Construct from Map.
override

Constants

CONSTRUCTOR → const String
@type
"addFileToDownloads"