EncryptedCredentials class

Contains data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes.

https://core.telegram.org/bots/api#encryptedcredentials

Annotations
  • @JsonSerializable.new(includeIfNull: false)

Constructors

EncryptedCredentials({String? data, String? hash, String? secret})
EncryptedCredentials.fromJson(Map<String, dynamic> json)
factory

Properties

data ↔ String?
Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication.
getter/setter pair
hash ↔ String?
Base64-encoded data hash for data authentication.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secret ↔ String?
Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption.
getter/setter pair

Methods

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

Operators

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