When editing inline messages, prefer use of text keyword parameter

This commit is contained in:
penn5 2020-12-07 19:56:53 +00:00 committed by GitHub
parent 0b0a1dc6a1
commit e4821d7f4f
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