Fix InlineQuery.event.geo returning None

Closes #3136.
This commit is contained in:
Lonami Exo 2021-08-22 13:09:57 +02:00
parent 6a1f29d953
commit bc6bcd31ad

View File

@ -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):