X Tutup
Skip to content

Commit 60f9aed

Browse files
committed
Minor fix on answerInlineQuery python-telegram-bot#232
1 parent c411ef7 commit 60f9aed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

telegram/bot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -696,11 +696,11 @@ def answerInlineQuery(self,
696696
data = {'inline_query_id': inline_query_id,
697697
'results': results}
698698

699-
if cache_time is not None:
699+
if cache_time:
700700
data['cache_time'] = int(cache_time)
701-
if is_personal is not None:
701+
if is_personal:
702702
data['is_personal'] = bool(is_personal)
703-
if next_offset is not None:
703+
if next_offset:
704704
data['next_offset'] = next_offset
705705
if switch_pm_text:
706706
data['switch_pm_text'] = switch_pm_text

0 commit comments

Comments
 (0)
X Tutup