From fe821c08e6df472aa1e922db29e514d9078e29ff Mon Sep 17 00:00:00 2001 From: Hinrich Mahler Date: Fri, 10 Apr 2020 23:43:58 +0200 Subject: [PATCH] Doc Fixes --- telegram/ext/dispatcher.py | 2 +- telegram/passport/data.py | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/telegram/ext/dispatcher.py b/telegram/ext/dispatcher.py index e3a3aee2e..4e60c0e44 100644 --- a/telegram/ext/dispatcher.py +++ b/telegram/ext/dispatcher.py @@ -428,7 +428,7 @@ class Dispatcher(object): """Update :attr:`user_data`, :attr:`chat_data` and :attr:`bot_data` in :attr:`persistence`. Args: - update (:class:`telegram.Update`, optional): The update to process. If passed, only the + update (:class:`telegram.Update`, optional): The update to process. If passed, only the corresponding ``user_data`` and ``chat_data`` will be updated. """ if self.persistence: diff --git a/telegram/passport/data.py b/telegram/passport/data.py index a478a7882..67146c62a 100644 --- a/telegram/passport/data.py +++ b/telegram/passport/data.py @@ -32,10 +32,12 @@ class PersonalDetails(TelegramObject): country_code (:obj:`str`): Citizenship (ISO 3166-1 alpha-2 country code). residence_country_code (:obj:`str`): Country of residence (ISO 3166-1 alpha-2 country code). - first_name (:obj:`str`): First Name in the language of the user's country of residence. - middle_name (:obj:`str`): Optional. Middle Name in the language of the user's country of + first_name_native (:obj:`str`): First Name in the language of the user's country of + residence. + middle_name_native (:obj:`str`): Optional. Middle Name in the language of the user's + country of residence. + last_name_native (:obj:`str`): Last Name in the language of the user's country of residence. - last_name (:obj:`str`): Last Name in the language of the user's country of residence. """ def __init__(self, first_name, last_name, birth_date, gender, country_code,