EncryptedPassportElement class

Describes documents or other Telegram Passport elements shared with the bot by the user.

Constructors

EncryptedPassportElement({required PassportType type, String? data, String? phoneNumber, String? email, List<PassportFile>? files, PassportFile? frontSide, PassportFile? reverseSide, PassportFile? selfie, List<PassportFile>? translation, required String hash})
Creates a new EncryptedPassportElement object.
const
EncryptedPassportElement.fromJson(Map<String, dynamic> json)
Creates a new EncryptedPassportElement object from json.
factory

Properties

data String?
Optional. Base64-encoded encrypted Telegram Passport element data provided by the user, available for “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport” and “address” types. Can be decrypted and verified using the accompanying EncryptedCredentials.
final
email String?
Optional. User's verified email address, available only for “email” type
final
files List<PassportFile>?
Optional. Array of encrypted files with documents provided by the user, available for “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and “temporary_registration” types. Files can be decrypted and verified using the accompanying EncryptedCredentials.
final
frontSide PassportFile?
Optional. Encrypted file with the front side of the document, provided by the user. Available for “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be decrypted and verified using the accompanying EncryptedCredentials.
final
hash String
Base64-encoded element hash for using in PassportElementErrorUnspecified
final
hashCode int
The hash code for this object.
no setterinherited
phoneNumber String?
Optional. User's verified phone number, available only for “phone_number” type
final
reverseSide PassportFile?
Optional. Encrypted file with the reverse side of the document, provided by the user. Available for “driver_license” and “identity_card”. The file can be decrypted and verified using the accompanying EncryptedCredentials.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selfie PassportFile?
Optional. Encrypted file with the selfie of the user holding a document, provided by the user; available for “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be decrypted and verified using the accompanying EncryptedCredentials.
final
translation List<PassportFile>?
Optional. Array of encrypted files with translated versions of documents provided by the user. Available if requested for “passport”, “driver_license”, “identity_card”, “internal_passport”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and “temporary_registration” types. Files can be decrypted and verified using the accompanying EncryptedCredentials.
final
type PassportType
Type of Telegram Passport element
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Creates a new EncryptedPassportElement object from json.
toString() String
A string representation of this object.
inherited

Operators

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