mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-22 22:45:09 +01:00
Update data.py to be compatible with example (#1213)
* Update data.py to be compatible with example for now, if you process personal_info with example code, then you got an error if there is no set option to get native fist and last name. setting default value will allow to process personal_info without native name/surname transation * fixing line length i hope i understood right this. sorry for delay, just starting using github!
This commit is contained in:
parent
3829666a53
commit
c714a177d1
1 changed files with 2 additions and 1 deletions
|
@ -39,7 +39,8 @@ class PersonalDetails(TelegramObject):
|
|||
"""
|
||||
|
||||
def __init__(self, first_name, last_name, birth_date, gender, country_code,
|
||||
residence_country_code, first_name_native, last_name_native, middle_name=None,
|
||||
residence_country_code, first_name_native=None,
|
||||
last_name_native=None, middle_name=None,
|
||||
middle_name_native=None, bot=None, **kwargs):
|
||||
# Required
|
||||
self.first_name = first_name
|
||||
|
|
Loading…
Reference in a new issue