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

Fix boolean parameters

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

View File

@ -1658,7 +1658,7 @@ def create_invoice_link(token, title, description, payload, provider_token,
payload['send_phone_number_to_provider'] = send_phone_number_to_provider
if send_email_to_provider:
payload['send_email_to_provider'] = send_email_to_provider
if is_flexible:
if is_flexible is not None:
payload['is_flexible'] = is_flexible
return _make_request(token, method_url, params=payload, method='post')

View File

@ -1636,7 +1636,7 @@ async def create_invoice_link(token, title, description, payload, provider_token
payload['send_phone_number_to_provider'] = send_phone_number_to_provider
if send_email_to_provider:
payload['send_email_to_provider'] = send_email_to_provider
if is_flexible:
if is_flexible is not None:
payload['is_flexible'] = is_flexible
return await _process_request(token, method_url, params=payload, method='post')