EncryptedPassportElement class

Inheritance

Constructors

EncryptedPassportElement({PassportElementType type, String data, DatedFile frontSide, DatedFile reverseSide, DatedFile selfie, List<DatedFile> translation, List<DatedFile> files, String value, String hash})
Contains information about an encrypted Telegram Passport element; for bots only
EncryptedPassportElement.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

data String
data Encrypted JSON-encoded data about the user
read / write
files List<DatedFile>
files List of attached files
read / write
frontSide DatedFile
frontSide The front side of an identity document
read / write
hash String
hash Hash of the entire element
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
reverseSide DatedFile
reverseSide The reverse side of an identity document; may be null
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
selfie DatedFile
selfie Selfie with the document; may be null
read / write
translation List<DatedFile>
translation List of files containing a certified English translation of the document
read / write
type PassportElementType
type Type of Telegram Passport element
read / write
value String
value Unencrypted data, phone number or email address
read / write

Methods

getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Constants

CONSTRUCTOR → const String
'encryptedPassportElement'