1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

fix next_offset is empty will not set bug.

This commit is contained in:
eternnoir 2016-04-17 23:28:47 +08:00
parent 225cbf2c61
commit e913635755

View File

@ -395,7 +395,7 @@ def answer_inline_query(token, inline_query_id, results, cache_time=None, is_per
payload['cache_time'] = cache_time
if is_personal:
payload['is_personal'] = is_personal
if next_offset:
if next_offset is not None:
payload['next_offset'] = next_offset
if switch_pm_text:
payload['switch_pm_text'] = switch_pm_text