Skip to content

Commit 1704420

Browse files
authored
Fix wrongly passed positional arguments (pyrogram#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
1 parent df4419d commit 1704420

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyrogram/types/bots_and_keyboards/callback_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ async def edit_message_caption(
252252
Raises:
253253
RPCError: In case of a Telegram RPC error.
254254
"""
255-
return await self.edit_message_text(caption, parse_mode, reply_markup)
255+
return await self.edit_message_text(caption, parse_mode, reply_markup=reply_markup)
256256

257257
async def edit_message_media(
258258
self,

0 commit comments

Comments
 (0)