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:
reablaz 2018-09-26 16:46:25 +03:00 committed by Jasmin Bom
parent 3829666a53
commit c714a177d1

View file

@ -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