PassportElementError¶
- class aiogram.types.passport_element_error.PassportElementError(**extra_data: Any)[source]¶
This object represents an error in the Telegram Passport element which was submitted that should be resolved by the user. It should be one of:
aiogram.types.passport_element_error_data_field.PassportElementErrorDataField
aiogram.types.passport_element_error_front_side.PassportElementErrorFrontSide
aiogram.types.passport_element_error_reverse_side.PassportElementErrorReverseSide
aiogram.types.passport_element_error_selfie.PassportElementErrorSelfie
aiogram.types.passport_element_error_file.PassportElementErrorFile
aiogram.types.passport_element_error_files.PassportElementErrorFiles
aiogram.types.passport_element_error_translation_file.PassportElementErrorTranslationFile
aiogram.types.passport_element_error_translation_files.PassportElementErrorTranslationFiles
aiogram.types.passport_element_error_unspecified.PassportElementErrorUnspecified
Source: https://core.telegram.org/bots/api#passportelementerror
- 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.