We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86ff673 commit d9900e3Copy full SHA for d9900e3
telegram/bot.py
@@ -1143,10 +1143,8 @@ def send_contact(self,
1143
if isinstance(contact, Contact):
1144
phone_number = contact.phone_number
1145
first_name = contact.first_name
1146
- if contact.last_name:
1147
- last_name = contact.last_name
1148
- if contact.vcard:
1149
- vcard = contact.vcard
+ last_name = contact.last_name
+ vcard = contact.vcard
1150
1151
data = {'chat_id': chat_id, 'phone_number': phone_number, 'first_name': first_name}
1152
0 commit comments