mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Favour text parameter when editing inline messages (#1643)
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user