X Tutup
Skip to content

Commit a98919a

Browse files
committed
fix cache_time==0 case
1 parent 7913d09 commit a98919a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

telegram/bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ def answerInlineQuery(self,
797797
data = {'inline_query_id': inline_query_id,
798798
'results': results}
799799

800-
if cache_time:
800+
if cache_time or cache_time == 0:
801801
data['cache_time'] = int(cache_time)
802802
if is_personal:
803803
data['is_personal'] = bool(is_personal)

0 commit comments

Comments
 (0)
X Tutup