1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Fix previous commit

This commit is contained in:
coder2020official 2022-06-23 12:46:27 +05:00
parent 1342cab259
commit 7f9dac4147
2 changed files with 12 additions and 12 deletions

View File

@ -1646,17 +1646,17 @@ def create_invoice_link(token, title, description, payload, provider_token,
payload['photo_width'] = photo_width
if photo_height:
payload['photo_height'] = photo_height
if need_name:
if need_name is not None:
payload['need_name'] = need_name
if need_phone_number:
if need_phone_number is not None:
payload['need_phone_number'] = need_phone_number
if need_email:
if need_email is not None:
payload['need_email'] = need_email
if need_shipping_address:
if need_shipping_address is not None:
payload['need_shipping_address'] = need_shipping_address
if send_phone_number_to_provider:
if send_phone_number_to_provider is not None:
payload['send_phone_number_to_provider'] = send_phone_number_to_provider
if send_email_to_provider:
if send_email_to_provider is not None:
payload['send_email_to_provider'] = send_email_to_provider
if is_flexible is not None:
payload['is_flexible'] = is_flexible

View File

@ -1624,17 +1624,17 @@ async def create_invoice_link(token, title, description, payload, provider_token
payload['photo_width'] = photo_width
if photo_height:
payload['photo_height'] = photo_height
if need_name:
if need_name is not None:
payload['need_name'] = need_name
if need_phone_number:
if need_phone_number is not None:
payload['need_phone_number'] = need_phone_number
if need_email:
if need_email is not None:
payload['need_email'] = need_email
if need_shipping_address:
if need_shipping_address is not None:
payload['need_shipping_address'] = need_shipping_address
if send_phone_number_to_provider:
if send_phone_number_to_provider is not None:
payload['send_phone_number_to_provider'] = send_phone_number_to_provider
if send_email_to_provider:
if send_email_to_provider is not None:
payload['send_email_to_provider'] = send_email_to_provider
if is_flexible is not None:
payload['is_flexible'] = is_flexible