mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 12:59:46 +00:00
Expose entity parameter in client.inline_query
Some bots, such as @gamee, use this to determine the type of results to return (and "disable" themselves in channels).
This commit is contained in:
@@ -44,8 +44,8 @@ class InlineResults(list):
|
||||
switch to a private conversation with the bot using
|
||||
the text in this object.
|
||||
"""
|
||||
def __init__(self, client, original):
|
||||
super().__init__(InlineResult(client, x, original.query_id)
|
||||
def __init__(self, client, original, *, entity=None):
|
||||
super().__init__(InlineResult(client, x, original.query_id, entity=entity)
|
||||
for x in original.results)
|
||||
|
||||
self.result = original
|
||||
|
Reference in New Issue
Block a user