From 4de73541f420f382739fad3242657bc6af40081b Mon Sep 17 00:00:00 2001 From: Shrimadhav U K Date: Tue, 26 Jan 2021 21:41:27 +0530 Subject: [PATCH] =?UTF-8?q?try=20mimicking=20BOT=20API=20=F0=9F=99=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- telethon/events/inlinequery.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/telethon/events/inlinequery.py b/telethon/events/inlinequery.py index ad3dbcf6..12882fed 100644 --- a/telethon/events/inlinequery.py +++ b/telethon/events/inlinequery.py @@ -177,7 +177,10 @@ class InlineQuery(EventBuilder): next_offset (`str`, optional): The offset the client will send when the user scrolls the - results and it repeats the request. + results and it repeats the request. Pass an empty string + if there are no more results or + if you don't support pagination. + Offset length can't exceed 64 bytes. private (`bool`, optional): Whether the results should be cached by Telegram @@ -231,7 +234,7 @@ class InlineQuery(EventBuilder): results=results, cache_time=cache_time, gallery=gallery, - next_offset=next_offset, + next_offset=next_offset or None, private=private, switch_pm=switch_pm )