EncryptedPassportElement class final
Contains information about an encrypted Telegram Passport element; for bots only
Constructors
-
EncryptedPassportElement({required PassportElementType type, required String data, required DatedFile frontSide, DatedFile? reverseSide, DatedFile? selfie, required List<
DatedFile> translation, required List<DatedFile> files, required String value, required String hash}) -
Contains information about an encrypted Telegram Passport element; for bots only
const
-
EncryptedPassportElement.fromJson(Map<
String, dynamic> json) -
Parses a EncryptedPassportElement from TDLib JSON.
factory
Properties
- clientId → int?
-
Identifier of the TDLib client that sent this object, when known.
no setterinherited
- data → String
-
Encrypted JSON-encoded data about the user
final
- extra → dynamic
-
"@extra" of the request this object answers; null for updates.
no setterinherited
-
files
→ List<
DatedFile> -
List of attached files
final
- frontSide → DatedFile
-
The front side of an identity document
final
- hash → String
-
Hash of the entire element
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- reverseSide → DatedFile?
-
The reverse side of an identity document; may be null
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selfie → DatedFile?
-
Selfie with the document; may be null
final
-
translation
→ List<
DatedFile> -
List of files containing a certified English translation of the document
final
- type → PassportElementType
-
Type of Telegram Passport element
final
- value → String
-
Unencrypted data, phone number or email address
final
Methods
-
copyWith(
{PassportElementType? type, String? data, DatedFile? frontSide, DatedFile? reverseSide()?, DatedFile? selfie()?, List< DatedFile> ? translation, List<DatedFile> ? files, String? value, String? hash}) → EncryptedPassportElement -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it. -
getConstructor(
) → String -
TDLib type name, e.g.
updateNewMessage.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this object to TDLib JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.