mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-23 23:39:42 +01:00
Minor fix on answerInlineQuery #232
This commit is contained in:
parent
c411ef7822
commit
60f9aede07
1 changed files with 3 additions and 3 deletions
|
@ -696,11 +696,11 @@ class Bot(TelegramObject):
|
||||||
data = {'inline_query_id': inline_query_id,
|
data = {'inline_query_id': inline_query_id,
|
||||||
'results': results}
|
'results': results}
|
||||||
|
|
||||||
if cache_time is not None:
|
if cache_time:
|
||||||
data['cache_time'] = int(cache_time)
|
data['cache_time'] = int(cache_time)
|
||||||
if is_personal is not None:
|
if is_personal:
|
||||||
data['is_personal'] = bool(is_personal)
|
data['is_personal'] = bool(is_personal)
|
||||||
if next_offset is not None:
|
if next_offset:
|
||||||
data['next_offset'] = next_offset
|
data['next_offset'] = next_offset
|
||||||
if switch_pm_text:
|
if switch_pm_text:
|
||||||
data['switch_pm_text'] = switch_pm_text
|
data['switch_pm_text'] = switch_pm_text
|
||||||
|
|
Loading…
Add table
Reference in a new issue