mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-17 03:51:05 +03:00
Fix CallbackQuery.edit for normal queries (0b4d649
)
This commit is contained in:
parent
3398bee77a
commit
38900c5079
|
@ -264,9 +264,15 @@ class CallbackQuery(EventBuilder):
|
||||||
since the message object is normally not present.
|
since the message object is normally not present.
|
||||||
"""
|
"""
|
||||||
self._client.loop.create_task(self.answer())
|
self._client.loop.create_task(self.answer())
|
||||||
return await self._client.edit_message(
|
if isinstance(self.query.msg_id, types.InputBotInlineMessageID):
|
||||||
self.query.msg_id, *args, **kwargs
|
return await self._client.edit_message(
|
||||||
)
|
self.query.msg_id, *args, **kwargs
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return await self._client.edit_message(
|
||||||
|
await self.get_input_chat(), self.query.msg_id,
|
||||||
|
*args, **kwargs
|
||||||
|
)
|
||||||
|
|
||||||
async def delete(self, *args, **kwargs):
|
async def delete(self, *args, **kwargs):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user