mirror of
https://github.com/pyrogram/pyrogram
synced 2025-09-02 07:15:23 +00:00
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:
@@ -252,7 +252,7 @@ class CallbackQuery(Object, Update):
|
|||||||
Raises:
|
Raises:
|
||||||
RPCError: In case of a Telegram RPC error.
|
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(
|
async def edit_message_media(
|
||||||
self,
|
self,
|
||||||
|
Reference in New Issue
Block a user