Favour text parameter when editing inline messages (#1643)

This commit is contained in:
penn5 2020-12-08 09:06:19 +00:00 committed by GitHub
parent 0b0a1dc6a1
commit 44aca29057
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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