PassportData¶
- class aiogram.types.passport_data.PassportData(*, data: list[EncryptedPassportElement], credentials: EncryptedCredentials, **extra_data: Any)[source]¶
Describes Telegram Passport data shared with the bot by the user.
Source: https://core.telegram.org/bots/api#passportdata
- data: list[EncryptedPassportElement]¶
Array with information about documents and other Telegram Passport elements that was shared with the bot
- model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}¶
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_post_init(context: Any, /) None ¶
We need to both initialize private attributes and call the user-defined model_post_init method.
- credentials: EncryptedCredentials¶
Encrypted credentials required to decrypt the data