Fix wrongly passed positional arguments (#603)

Since CallbackQuery.edit_message_text takes 4 arguments and CallbackQuery.edit_message_caption only 3, the reply_markup ends up to be the disable_web_page_preview one. Resolve this by specifying the argument name
This commit is contained in:
Lorenzo Delmonte 2021-05-12 08:52:28 +02:00 committed by GitHub
parent df4419da8f
commit 1704420697
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -252,7 +252,7 @@ class CallbackQuery(Object, Update):
Raises:
RPCError: In case of a Telegram RPC error.
"""
return await self.edit_message_text(caption, parse_mode, reply_markup)
return await self.edit_message_text(caption, parse_mode, reply_markup=reply_markup)
async def edit_message_media(
self,