We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c411ef7 commit 60f9aedCopy full SHA for 60f9aed
telegram/bot.py
@@ -696,11 +696,11 @@ def answerInlineQuery(self,
696
data = {'inline_query_id': inline_query_id,
697
'results': results}
698
699
- if cache_time is not None:
+ if cache_time:
700
data['cache_time'] = int(cache_time)
701
- if is_personal is not None:
+ if is_personal:
702
data['is_personal'] = bool(is_personal)
703
- if next_offset is not None:
+ if next_offset:
704
data['next_offset'] = next_offset
705
if switch_pm_text:
706
data['switch_pm_text'] = switch_pm_text
0 commit comments