- Enclosing class:
- TdApi
Returns information about a file by its remote ID; this is an offline
request. Can be used to register a URL as a file for further
uploading, or sending as a message. Even the request succeeds, the
file can be used only if it is still accessible to the user. 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.
Returns File
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.File type; pass null if unknown.Remote identifier of the file to get. -
Constructor Summary
ConstructorDescriptionReturns information about a file by its remote ID; this is an offline request.GetRemoteFile
(DataInput input) Returns information about a file by its remote ID; this is an offline request.GetRemoteFile
(String remoteFileId, TdApi.FileType fileType) Returns information about a file by its remote ID; this is an offline request. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
remoteFileId
Remote identifier of the file to get. -
fileType
File type; pass null if unknown. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
GetRemoteFile
public GetRemoteFile()Returns information about a file by its remote ID; this is an offline request. Can be used to register a URL as a file for further uploading, or sending as a message. Even the request succeeds, the file can be used only if it is still accessible to the user. 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.Returns
File
-
GetRemoteFile
Returns information about a file by its remote ID; this is an offline request. Can be used to register a URL as a file for further uploading, or sending as a message. Even the request succeeds, the file can be used only if it is still accessible to the user. 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.Returns
File
- Parameters:
remoteFileId
- Remote identifier of the file to get.fileType
- File type; pass null if unknown.Returns
File
-
GetRemoteFile
Returns information about a file by its remote ID; this is an offline request. Can be used to register a URL as a file for further uploading, or sending as a message. Even the request succeeds, the file can be used only if it is still accessible to the user. 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.Returns
File
- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
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
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-