peyk.platforms.telegram.types.encrypted_credentials¶
Classes
|
Describes data required for decrypting and authenticating EncryptedPassportElement. |
- class peyk.platforms.telegram.types.encrypted_credentials.EncryptedCredentials(data: str, hash: str, secret: str)[source]¶
Bases:
objectDescribes data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes.
- Variables:
data (str) – Base64-encoded encrypted JSON-serialized data with unique user’s payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication
hash (str) – Base64-encoded data hash for data authentication
secret (str) – Base64-encoded secret, encrypted with the bot’s public RSA key, required for data decryption
- data: str¶
- hash: str¶
- secret: str¶
- classmethod from_dict(data: dict | None) EncryptedCredentials | None[source]¶
Provides the from dict operation for the Telegram integration.
- Parameters:
data – Value used by this operation.
- Returns:
Result produced by the operation.