From bc6bcd31ad0c46a26e8597689c69de6c1711d14a Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Sun, 22 Aug 2021 13:09:57 +0200 Subject: [PATCH] Fix InlineQuery.event.geo returning None Closes #3136. --- telethon/events/inlinequery.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/telethon/events/inlinequery.py b/telethon/events/inlinequery.py index ad3dbcf6..75cfcb01 100644 --- a/telethon/events/inlinequery.py +++ b/telethon/events/inlinequery.py @@ -130,7 +130,7 @@ class InlineQuery(EventBuilder): and the user's device is able to send it, this will return the :tl:`GeoPoint` with the position of the user. """ - return + return self.query.geo @property def builder(self): @@ -174,9 +174,9 @@ class InlineQuery(EventBuilder): gallery (`bool`, optional): Whether the results should show as a gallery (grid) or not. - + next_offset (`str`, optional): - The offset the client will send when the user scrolls the + The offset the client will send when the user scrolls the results and it repeats the request. private (`bool`, optional):