mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-29 21:03:45 +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!!!')
|
await client.edit_message(message, 'hello!!!')
|
||||||
"""
|
"""
|
||||||
if isinstance(entity, types.InputBotInlineMessageID):
|
if isinstance(entity, types.InputBotInlineMessageID):
|
||||||
text = message
|
text = text or message
|
||||||
message = entity
|
message = entity
|
||||||
elif isinstance(entity, types.Message):
|
elif isinstance(entity, types.Message):
|
||||||
text = message # Shift the parameters to the right
|
text = message # Shift the parameters to the right
|
||||||
|
|
Loading…
Reference in New Issue
Block a user