PassportFile class
This object represents a file uploaded to Telegram Passport. Currently all Telegram Passport files are in JPEG format when decrypted and don't exceed 10MB.
Constructors
- PassportFile({required String fileId, required String fileUniqueId, required int fileSize, required int fileDate})
-
Constructs a PassportFile object
const
-
PassportFile.fromJson(Map<
String, dynamic> json) -
Creates a PassportFile object from JSON object
factory
Properties
- fileDate → int
-
Unix time when the file was uploaded
final
- fileDateTime → DateTime
-
Returns the DateTime object of fileDate.
DateTime object of fileDate.
no setter
- fileId → String
-
Unique identifier for this file
final
- fileSize → int
-
File size
final
- fileUniqueId → String
-
Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts a PassportFile object to JSON object
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited