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:
parent
8769802744
commit
1342cab259
@ -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')
|
||||
|
||||
|
@ -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')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user