Update code using get_input_entity

This commit is contained in:
Lonami Exo
2022-03-02 12:54:30 +01:00
parent 5ff8eb8159
commit 6d293b440c
22 changed files with 77 additions and 70 deletions

View File

@@ -16,9 +16,9 @@ async def inline_query(
dialog: 'hints.DialogLike' = None,
offset: str = None,
geo_point: '_tl.GeoPoint' = None) -> _custom.InlineResults:
bot = await self.get_input_entity(bot)
bot = await self._get_input_peer(bot)
if dialog:
peer = await self.get_input_entity(dialog)
peer = await self._get_input_peer(dialog)
else:
peer = _tl.InputPeerEmpty()