mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
e2ef053949
2 changed files with 4 additions and 1 deletions
|
|
@ -397,6 +397,9 @@ class Client(Methods, Scaffold):
|
|||
|
||||
@parse_mode.setter
|
||||
def parse_mode(self, parse_mode: Optional[str] = "combined"):
|
||||
if isinstance(parse_mode, str):
|
||||
parse_mode = parse_mode.lower()
|
||||
|
||||
if parse_mode not in self.PARSE_MODES:
|
||||
raise ValueError('parse_mode must be one of {} or None. Not "{}"'.format(
|
||||
", ".join(f'"{m}"' for m in self.PARSE_MODES[:-1]),
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue