Data about the represents a file uploaded to Telegram Passport. Currently, all Telegram Passport files are in JPEG format when decrypted and do not exceed 10MB
Unix time when the file was uploaded
The unique identifier for this file
The path to the file on the Telegram server, if available
The size of the file in bytes, if available
The unique identifier for this file, which is supposed to be consistent across different bots
The client that instantiated this
Date when the file was uploaded
Return the timestamp file was uploaded, in milliseconds
Gets the URL to access the file on the Telegram server.
Protected
_cloneProtected
_patchProtected
_updateFlatten an object. Any properties that are collections will get converted to an array of keys.
Optional
propsRecursive: booleanOptional. If true, calls toJSON method on nested objects.
Rest
...props: Record<string, string | boolean>[]Optional. Specific properties to include/exclude, or rename.
Flattened object.
Writes the file to the specified path.
The path where the file should be written.
Optional
writeType: "promise"The type of write operation.
Optional
options: { Additional options for writing the file.
Optional
encoding?: BufferEncodingOptional
flag?: stringOptional
signal?: AbortSignalA promise that resolves when the file has been written.
Writes the file to the specified path.
The path where the file should be written.
The type of write operation.
Optional
options: { Additional options for writing the file.
Optional
autoOptional
emitOptional
encoding?: BufferEncodingOptional
flush?: booleanOptional
highOptional
start?: numberA promise that resolves when the file has been written.
Writes the file to the specified path.
The path where the file should be written.
Optional
writeType: "stream" | "promise"The type of write operation.
Optional
options: undefinedAdditional options for writing the file.
A promise that resolves when the file has been written.
The client that instantiated this