telegram.PassportElementError¶
-
class
telegram.
PassportElementError
(source: str, type: str, message: str, **_kwargs)¶ Bases:
telegram.base.TelegramObject
Baseclass for the PassportElementError* classes.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
source
andtype
are equal.Parameters: - source (
str
) – Error source. - type (
str
) – The section of the user’s Telegram Passport which has the error. - **kwargs (
dict
) – Arbitrary keyword arguments.
-
source
¶ Error source.
Type: str
-
type
¶ The section of the user’s Telegram Passport which has the error.
Type: str
-
message
¶ Error message.
Type: str
- source (