class aiogram.types.encrypted_credentials.EncryptedCredentials(*, data: str, hash: str, secret: str, **extra_data: Any)[source]#

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

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

data: str#

Base64-encoded encrypted JSON-serialized data with unique user’s payload, data hashes and secrets required for aiogram.types.encrypted_passport_element.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