mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 13:29:47 +00:00
Fix imports
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import typing
|
||||
|
||||
from .. import hints, _tl
|
||||
from .._tl import custom
|
||||
|
||||
if typing.TYPE_CHECKING:
|
||||
from .telegramclient import TelegramClient
|
||||
@@ -13,7 +14,7 @@ async def inline_query(
|
||||
*,
|
||||
entity: 'hints.EntityLike' = None,
|
||||
offset: str = None,
|
||||
geo_point: '_tl.GeoPoint' = None) -> _tl.custom.InlineResults:
|
||||
geo_point: '_tl.GeoPoint' = None) -> custom.InlineResults:
|
||||
bot = await self.get_input_entity(bot)
|
||||
if entity:
|
||||
peer = await self.get_input_entity(entity)
|
||||
@@ -28,4 +29,4 @@ async def inline_query(
|
||||
geo_point=geo_point
|
||||
))
|
||||
|
||||
return _tl.custom.InlineResults(self, result, entity=peer if entity else None)
|
||||
return custom.InlineResults(self, result, entity=peer if entity else None)
|
||||
|
Reference in New Issue
Block a user