Class TdApi.RemoteFile
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.RemoteFile
- Enclosing class:
- TdApi
Represents a remote file.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.Remote file identifier; may be empty.boolean
True, if the file is currently being uploaded (or a remote copy is being generated by some other means).boolean
True, if a remote copy is fully available.Unique file identifier; may be empty if unknown.long
Size of the remote available part of the file, in bytes; 0 if unknown. -
Constructor Summary
ConstructorDescriptionRepresents a remote file.RemoteFile
(String id, String uniqueId, boolean isUploadingActive, boolean isUploadingCompleted, long uploadedSize) Represents a remote file. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Object
toString
-
Field Details
-
id
Remote file identifier; may be empty. Can be used by the current user across application restarts or even from other devices. Uniquely identifies a file, but a file can have a lot of different valid identifiers. If the identifier starts with "http://" or "https://", it represents the HTTP URL of the file. TDLib is currently unable to download files if only their URL is known. If downloadFile/addFileToDownloads is called on such a file or if it is sent to a secret chat, TDLib starts a file generation process by sending updateFileGenerationStart to the application with the HTTP URL in the originalPath and "#url#" as the conversion string. Application must generate the file by downloading it to the specified location. -
uniqueId
Unique file identifier; may be empty if unknown. The unique file identifier which is the same for the same file even for different users and is persistent over time. -
isUploadingActive
public boolean isUploadingActiveTrue, if the file is currently being uploaded (or a remote copy is being generated by some other means). -
isUploadingCompleted
public boolean isUploadingCompletedTrue, if a remote copy is fully available. -
uploadedSize
public long uploadedSizeSize of the remote available part of the file, in bytes; 0 if unknown. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
RemoteFile
public RemoteFile()Represents a remote file. -
RemoteFile
public RemoteFile(String id, String uniqueId, boolean isUploadingActive, boolean isUploadingCompleted, long uploadedSize) Represents a remote file.- Parameters:
id
- Remote file identifier; may be empty. Can be used by the current user across application restarts or even from other devices. Uniquely identifies a file, but a file can have a lot of different valid identifiers. If the identifier starts with "http://" or "https://", it represents the HTTP URL of the file. TDLib is currently unable to download files if only their URL is known. If downloadFile/addFileToDownloads is called on such a file or if it is sent to a secret chat, TDLib starts a file generation process by sending updateFileGenerationStart to the application with the HTTP URL in the originalPath and "#url#" as the conversion string. Application must generate the file by downloading it to the specified location.uniqueId
- Unique file identifier; may be empty if unknown. The unique file identifier which is the same for the same file even for different users and is persistent over time.isUploadingActive
- True, if the file is currently being uploaded (or a remote copy is being generated by some other means).isUploadingCompleted
- True, if a remote copy is fully available.uploadedSize
- Size of the remote available part of the file, in bytes; 0 if unknown.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-