Skip to content

Commit e913635

Browse files
committed
fix next_offset is empty will not set bug.
1 parent 225cbf2 commit e913635

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎telebot/apihelper.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ def answer_inline_query(token, inline_query_id, results, cache_time=None, is_per
395395
payload['cache_time'] = cache_time
396396
if is_personal:
397397
payload['is_personal'] = is_personal
398-
if next_offset:
398+
if next_offset is not None:
399399
payload['next_offset'] = next_offset
400400
if switch_pm_text:
401401
payload['switch_pm_text'] = switch_pm_text

0 commit comments

Comments
 (0)