telegram.PassportElementErrorDataField¶
-
class
telegram.
PassportElementErrorDataField
(type, field_name, data_hash, message, **_kwargs)¶ Bases:
telegram.passport.passportelementerrors.PassportElementError
Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field’s value changes.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
source
,type
,field_name
,data_hash
andmessage
are equal.- Parameters
type (
str
) – The section of the user’s Telegram Passport which has the error, one of"personal_details"
,"passport"
,"driver_license"
,"identity_card"
,"internal_passport"
,"address"
.field_name (
str
) – Name of the data field which has the error.data_hash (
str
) – Base64-encoded data hash.message (
str
) – Error message.**kwargs (
dict
) – Arbitrary keyword arguments.
-
type
¶ The section of the user’s Telegram Passport which has the error, one of
"personal_details"
,"passport"
,"driver_license"
,"identity_card"
,"internal_passport"
,"address"
.- Type
str
-
field_name
¶ Name of the data field which has the error.
- Type
str
-
data_hash
¶ Base64-encoded data hash.
- Type
str
-
message
¶ Error message.
- Type
str