Skip to content

Commit 7542c44

Browse files
withabdulalissonlauffer
authored andcommitted
Fix parse_mode typing for ask() method
1 parent e89bd93 commit 7542c44

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

pyrogram/types/messages_and_media/message.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3632,7 +3632,7 @@ async def ask(
36323632
self,
36333633
text: str,
36343634
quote: bool = None,
3635-
parse_mode: Optional[str] = object,
3635+
parse_mode: Optional["enums.ParseMode"] = None,
36363636
entities: List["types.MessageEntity"] = None,
36373637
disable_web_page_preview: bool = None,
36383638
disable_notification: bool = None,
@@ -3664,12 +3664,9 @@ async def ask(
36643664
If *reply_to_message_id* is passed, this parameter will be ignored.
36653665
Defaults to ``True`` in group chats and ``False`` in private chats.
36663666
3667-
parse_mode (``str``, *optional*):
3667+
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
36683668
By default, texts are parsed using both Markdown and HTML styles.
36693669
You can combine both syntaxes together.
3670-
Pass "markdown" or "md" to enable Markdown-style parsing only.
3671-
Pass "html" to enable HTML-style parsing only.
3672-
Pass None to completely disable style parsing.
36733670
36743671
entities (List of :obj:`~pyrogram.types.MessageEntity`):
36753672
List of special entities that appear in message text, which can be specified instead of *parse_mode*.

0 commit comments

Comments
 (0)