mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 09:26:37 +03:00
Favour text parameter when editing inline messages (#1643)
This commit is contained in:
parent
0b0a1dc6a1
commit
44aca29057
|
@ -1034,7 +1034,7 @@ class MessageMethods:
|
|||
await client.edit_message(message, 'hello!!!')
|
||||
"""
|
||||
if isinstance(entity, types.InputBotInlineMessageID):
|
||||
text = message
|
||||
text = text or message
|
||||
message = entity
|
||||
elif isinstance(entity, types.Message):
|
||||
text = message # Shift the parameters to the right
|
||||
|
|
Loading…
Reference in New Issue
Block a user