mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-30 17:59:55 +03:00
When editing inline messages, prefer use of text
keyword parameter
This commit is contained in:
parent
0b0a1dc6a1
commit
e4821d7f4f
|
@ -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