mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 12:59:46 +00:00
Make Message.edit respect preview and buttons
This commit is contained in:
@@ -235,6 +235,12 @@ class CallbackQuery(EventBuilder):
|
||||
Returns the edited :tl:`Message`.
|
||||
|
||||
This method also creates a task to `answer` the callback.
|
||||
|
||||
.. note::
|
||||
|
||||
This method won't respect the previous message unlike
|
||||
`Message.edit <telethon.tl.custom.message.Message.edit>`,
|
||||
since the message object is normally not present.
|
||||
"""
|
||||
self._client.loop.create_task(self.answer())
|
||||
return await self._client.edit_message(
|
||||
|
Reference in New Issue
Block a user