Add "md" to possible parse modes for Markdown style

This commit is contained in:
Dan 2019-07-10 20:03:10 +02:00
parent 6a62d1b8c4
commit e41d21ba29
21 changed files with 31 additions and 31 deletions

View File

@ -40,7 +40,7 @@ class EditInlineCaption(BaseClient):
parse_mode (``str``, *optional*): parse_mode (``str``, *optional*):
By default, texts are parsed using both Markdown and HTML styles. By default, texts are parsed using both Markdown and HTML styles.
You can combine both syntaxes together. You can combine both syntaxes together.
Pass "markdown" to enable Markdown-style parsing only. Pass "markdown" or "md" to enable Markdown-style parsing only.
Pass "html" to enable HTML-style parsing only. Pass "html" to enable HTML-style parsing only.
Pass None to completely disable style parsing. Pass None to completely disable style parsing.

View File

@ -44,7 +44,7 @@ class EditInlineText(BaseClient):
parse_mode (``str``, *optional*): parse_mode (``str``, *optional*):
By default, texts are parsed using both Markdown and HTML styles. By default, texts are parsed using both Markdown and HTML styles.
You can combine both syntaxes together. You can combine both syntaxes together.
Pass "markdown" to enable Markdown-style parsing only. Pass "markdown" or "md" to enable Markdown-style parsing only.
Pass "html" to enable HTML-style parsing only. Pass "html" to enable HTML-style parsing only.
Pass None to completely disable style parsing. Pass None to completely disable style parsing.

View File

@ -48,7 +48,7 @@ class EditMessageCaption(BaseClient):
parse_mode (``str``, *optional*): parse_mode (``str``, *optional*):
By default, texts are parsed using both Markdown and HTML styles. By default, texts are parsed using both Markdown and HTML styles.
You can combine both syntaxes together. You can combine both syntaxes together.
Pass "markdown" to enable Markdown-style parsing only. Pass "markdown" or "md" to enable Markdown-style parsing only.
Pass "html" to enable HTML-style parsing only. Pass "html" to enable HTML-style parsing only.
Pass None to completely disable style parsing. Pass None to completely disable style parsing.

View File

@ -50,7 +50,7 @@ class EditMessageText(BaseClient):
parse_mode (``str``, *optional*): parse_mode (``str``, *optional*):
By default, texts are parsed using both Markdown and HTML styles. By default, texts are parsed using both Markdown and HTML styles.
You can combine both syntaxes together. You can combine both syntaxes together.
Pass "markdown" to enable Markdown-style parsing only. Pass "markdown" or "md" to enable Markdown-style parsing only.
Pass "html" to enable HTML-style parsing only. Pass "html" to enable HTML-style parsing only.
Pass None to completely disable style parsing. Pass None to completely disable style parsing.

View File

@ -72,7 +72,7 @@ class SendAnimation(BaseClient):
parse_mode (``str``, *optional*): parse_mode (``str``, *optional*):
By default, texts are parsed using both Markdown and HTML styles. By default, texts are parsed using both Markdown and HTML styles.
You can combine both syntaxes together. You can combine both syntaxes together.
Pass "markdown" to enable Markdown-style parsing only. Pass "markdown" or "md" to enable Markdown-style parsing only.
Pass "html" to enable HTML-style parsing only. Pass "html" to enable HTML-style parsing only.
Pass None to completely disable style parsing. Pass None to completely disable style parsing.

View File

@ -69,7 +69,7 @@ class SendAudio(BaseClient):
parse_mode (``str``, *optional*): parse_mode (``str``, *optional*):
By default, texts are parsed using both Markdown and HTML styles. By default, texts are parsed using both Markdown and HTML styles.
You can combine both syntaxes together. You can combine both syntaxes together.
Pass "markdown" to enable Markdown-style parsing only. Pass "markdown" or "md" to enable Markdown-style parsing only.
Pass "html" to enable HTML-style parsing only. Pass "html" to enable HTML-style parsing only.
Pass None to completely disable style parsing. Pass None to completely disable style parsing.

View File

@ -61,7 +61,7 @@ class SendCachedMedia(BaseClient):
parse_mode (``str``, *optional*): parse_mode (``str``, *optional*):
By default, texts are parsed using both Markdown and HTML styles. By default, texts are parsed using both Markdown and HTML styles.
You can combine both syntaxes together. You can combine both syntaxes together.
Pass "markdown" to enable Markdown-style parsing only. Pass "markdown" or "md" to enable Markdown-style parsing only.
Pass "html" to enable HTML-style parsing only. Pass "html" to enable HTML-style parsing only.
Pass None to completely disable style parsing. Pass None to completely disable style parsing.

View File

@ -70,7 +70,7 @@ class SendDocument(BaseClient):
parse_mode (``str``, *optional*): parse_mode (``str``, *optional*):
By default, texts are parsed using both Markdown and HTML styles. By default, texts are parsed using both Markdown and HTML styles.
You can combine both syntaxes together. You can combine both syntaxes together.
Pass "markdown" to enable Markdown-style parsing only. Pass "markdown" or "md" to enable Markdown-style parsing only.
Pass "html" to enable HTML-style parsing only. Pass "html" to enable HTML-style parsing only.
Pass None to completely disable style parsing. Pass None to completely disable style parsing.

View File

@ -53,7 +53,7 @@ class SendMessage(BaseClient):
parse_mode (``str``, *optional*): parse_mode (``str``, *optional*):
By default, texts are parsed using both Markdown and HTML styles. By default, texts are parsed using both Markdown and HTML styles.
You can combine both syntaxes together. You can combine both syntaxes together.
Pass "markdown" to enable Markdown-style parsing only. Pass "markdown" or "md" to enable Markdown-style parsing only.
Pass "html" to enable HTML-style parsing only. Pass "html" to enable HTML-style parsing only.
Pass None to completely disable style parsing. Pass None to completely disable style parsing.

View File

@ -64,7 +64,7 @@ class SendPhoto(BaseClient):
parse_mode (``str``, *optional*): parse_mode (``str``, *optional*):
By default, texts are parsed using both Markdown and HTML styles. By default, texts are parsed using both Markdown and HTML styles.
You can combine both syntaxes together. You can combine both syntaxes together.
Pass "markdown" to enable Markdown-style parsing only. Pass "markdown" or "md" to enable Markdown-style parsing only.
Pass "html" to enable HTML-style parsing only. Pass "html" to enable HTML-style parsing only.
Pass None to completely disable style parsing. Pass None to completely disable style parsing.

View File

@ -68,7 +68,7 @@ class SendVideo(BaseClient):
parse_mode (``str``, *optional*): parse_mode (``str``, *optional*):
By default, texts are parsed using both Markdown and HTML styles. By default, texts are parsed using both Markdown and HTML styles.
You can combine both syntaxes together. You can combine both syntaxes together.
Pass "markdown" to enable Markdown-style parsing only. Pass "markdown" or "md" to enable Markdown-style parsing only.
Pass "html" to enable HTML-style parsing only. Pass "html" to enable HTML-style parsing only.
Pass None to completely disable style parsing. Pass None to completely disable style parsing.

View File

@ -64,7 +64,7 @@ class SendVoice(BaseClient):
parse_mode (``str``, *optional*): parse_mode (``str``, *optional*):
By default, texts are parsed using both Markdown and HTML styles. By default, texts are parsed using both Markdown and HTML styles.
You can combine both syntaxes together. You can combine both syntaxes together.
Pass "markdown" to enable Markdown-style parsing only. Pass "markdown" or "md" to enable Markdown-style parsing only.
Pass "html" to enable HTML-style parsing only. Pass "html" to enable HTML-style parsing only.
Pass None to completely disable style parsing. Pass None to completely disable style parsing.

View File

@ -44,7 +44,7 @@ class Parser:
if mode == "": if mode == "":
return self.markdown.parse(text) return self.markdown.parse(text)
if mode in "markdown": if mode in ["markdown", "md"]:
return self.markdown.parse(text, True) return self.markdown.parse(text, True)
if mode == "html": if mode == "html":

View File

@ -191,7 +191,7 @@ class CallbackQuery(Object, Update):
parse_mode (``str``, *optional*): parse_mode (``str``, *optional*):
By default, texts are parsed using both Markdown and HTML styles. By default, texts are parsed using both Markdown and HTML styles.
You can combine both syntaxes together. You can combine both syntaxes together.
Pass "markdown" to enable Markdown-style parsing only. Pass "markdown" or "md" to enable Markdown-style parsing only.
Pass "html" to enable HTML-style parsing only. Pass "html" to enable HTML-style parsing only.
Pass None to completely disable style parsing. Pass None to completely disable style parsing.
@ -243,7 +243,7 @@ class CallbackQuery(Object, Update):
parse_mode (``str``, *optional*): parse_mode (``str``, *optional*):
By default, texts are parsed using both Markdown and HTML styles. By default, texts are parsed using both Markdown and HTML styles.
You can combine both syntaxes together. You can combine both syntaxes together.
Pass "markdown" to enable Markdown-style parsing only. Pass "markdown" or "md" to enable Markdown-style parsing only.
Pass "html" to enable HTML-style parsing only. Pass "html" to enable HTML-style parsing only.
Pass None to completely disable style parsing. Pass None to completely disable style parsing.

View File

@ -42,7 +42,7 @@ class InputMediaAnimation(InputMedia):
parse_mode (``str``, *optional*): parse_mode (``str``, *optional*):
By default, texts are parsed using both Markdown and HTML styles. By default, texts are parsed using both Markdown and HTML styles.
You can combine both syntaxes together. You can combine both syntaxes together.
Pass "markdown" to enable Markdown-style parsing only. Pass "markdown" or "md" to enable Markdown-style parsing only.
Pass "html" to enable HTML-style parsing only. Pass "html" to enable HTML-style parsing only.
Pass None to completely disable style parsing. Pass None to completely disable style parsing.

View File

@ -44,7 +44,7 @@ class InputMediaAudio(InputMedia):
parse_mode (``str``, *optional*): parse_mode (``str``, *optional*):
By default, texts are parsed using both Markdown and HTML styles. By default, texts are parsed using both Markdown and HTML styles.
You can combine both syntaxes together. You can combine both syntaxes together.
Pass "markdown" to enable Markdown-style parsing only. Pass "markdown" or "md" to enable Markdown-style parsing only.
Pass "html" to enable HTML-style parsing only. Pass "html" to enable HTML-style parsing only.
Pass None to completely disable style parsing. Pass None to completely disable style parsing.

View File

@ -42,7 +42,7 @@ class InputMediaDocument(InputMedia):
parse_mode (``str``, *optional*): parse_mode (``str``, *optional*):
By default, texts are parsed using both Markdown and HTML styles. By default, texts are parsed using both Markdown and HTML styles.
You can combine both syntaxes together. You can combine both syntaxes together.
Pass "markdown" to enable Markdown-style parsing only. Pass "markdown" or "md" to enable Markdown-style parsing only.
Pass "html" to enable HTML-style parsing only. Pass "html" to enable HTML-style parsing only.
Pass None to completely disable style parsing. Pass None to completely disable style parsing.
""" """

View File

@ -38,7 +38,7 @@ class InputMediaPhoto(InputMedia):
parse_mode (``str``, *optional*): parse_mode (``str``, *optional*):
By default, texts are parsed using both Markdown and HTML styles. By default, texts are parsed using both Markdown and HTML styles.
You can combine both syntaxes together. You can combine both syntaxes together.
Pass "markdown" to enable Markdown-style parsing only. Pass "markdown" or "md" to enable Markdown-style parsing only.
Pass "html" to enable HTML-style parsing only. Pass "html" to enable HTML-style parsing only.
Pass None to completely disable style parsing. Pass None to completely disable style parsing.
""" """

View File

@ -44,7 +44,7 @@ class InputMediaVideo(InputMedia):
parse_mode (``str``, *optional*): parse_mode (``str``, *optional*):
By default, texts are parsed using both Markdown and HTML styles. By default, texts are parsed using both Markdown and HTML styles.
You can combine both syntaxes together. You can combine both syntaxes together.
Pass "markdown" to enable Markdown-style parsing only. Pass "markdown" or "md" to enable Markdown-style parsing only.
Pass "html" to enable HTML-style parsing only. Pass "html" to enable HTML-style parsing only.
Pass None to completely disable style parsing. Pass None to completely disable style parsing.

View File

@ -33,7 +33,7 @@ class InputTextMessageContent(InputMessageContent):
parse_mode (``str``, *optional*): parse_mode (``str``, *optional*):
By default, texts are parsed using both Markdown and HTML styles. By default, texts are parsed using both Markdown and HTML styles.
You can combine both syntaxes together. You can combine both syntaxes together.
Pass "markdown" to enable Markdown-style parsing only. Pass "markdown" or "md" to enable Markdown-style parsing only.
Pass "html" to enable HTML-style parsing only. Pass "html" to enable HTML-style parsing only.
Pass None to completely disable style parsing. Pass None to completely disable style parsing.

View File

@ -689,7 +689,7 @@ class Message(Object, Update):
parse_mode (``str``, *optional*): parse_mode (``str``, *optional*):
By default, texts are parsed using both Markdown and HTML styles. By default, texts are parsed using both Markdown and HTML styles.
You can combine both syntaxes together. You can combine both syntaxes together.
Pass "markdown" to enable Markdown-style parsing only. Pass "markdown" or "md" to enable Markdown-style parsing only.
Pass "html" to enable HTML-style parsing only. Pass "html" to enable HTML-style parsing only.
Pass None to completely disable style parsing. Pass None to completely disable style parsing.
@ -786,7 +786,7 @@ class Message(Object, Update):
parse_mode (``str``, *optional*): parse_mode (``str``, *optional*):
By default, texts are parsed using both Markdown and HTML styles. By default, texts are parsed using both Markdown and HTML styles.
You can combine both syntaxes together. You can combine both syntaxes together.
Pass "markdown" to enable Markdown-style parsing only. Pass "markdown" or "md" to enable Markdown-style parsing only.
Pass "html" to enable HTML-style parsing only. Pass "html" to enable HTML-style parsing only.
Pass None to completely disable style parsing. Pass None to completely disable style parsing.
@ -923,7 +923,7 @@ class Message(Object, Update):
parse_mode (``str``, *optional*): parse_mode (``str``, *optional*):
By default, texts are parsed using both Markdown and HTML styles. By default, texts are parsed using both Markdown and HTML styles.
You can combine both syntaxes together. You can combine both syntaxes together.
Pass "markdown" to enable Markdown-style parsing only. Pass "markdown" or "md" to enable Markdown-style parsing only.
Pass "html" to enable HTML-style parsing only. Pass "html" to enable HTML-style parsing only.
Pass None to completely disable style parsing. Pass None to completely disable style parsing.
@ -1052,7 +1052,7 @@ class Message(Object, Update):
parse_mode (``str``, *optional*): parse_mode (``str``, *optional*):
By default, texts are parsed using both Markdown and HTML styles. By default, texts are parsed using both Markdown and HTML styles.
You can combine both syntaxes together. You can combine both syntaxes together.
Pass "markdown" to enable Markdown-style parsing only. Pass "markdown" or "md" to enable Markdown-style parsing only.
Pass "html" to enable HTML-style parsing only. Pass "html" to enable HTML-style parsing only.
Pass None to completely disable style parsing. Pass None to completely disable style parsing.
@ -1270,7 +1270,7 @@ class Message(Object, Update):
parse_mode (``str``, *optional*): parse_mode (``str``, *optional*):
By default, texts are parsed using both Markdown and HTML styles. By default, texts are parsed using both Markdown and HTML styles.
You can combine both syntaxes together. You can combine both syntaxes together.
Pass "markdown" to enable Markdown-style parsing only. Pass "markdown" or "md" to enable Markdown-style parsing only.
Pass "html" to enable HTML-style parsing only. Pass "html" to enable HTML-style parsing only.
Pass None to completely disable style parsing. Pass None to completely disable style parsing.
@ -1660,7 +1660,7 @@ class Message(Object, Update):
parse_mode (``str``, *optional*): parse_mode (``str``, *optional*):
By default, texts are parsed using both Markdown and HTML styles. By default, texts are parsed using both Markdown and HTML styles.
You can combine both syntaxes together. You can combine both syntaxes together.
Pass "markdown" to enable Markdown-style parsing only. Pass "markdown" or "md" to enable Markdown-style parsing only.
Pass "html" to enable HTML-style parsing only. Pass "html" to enable HTML-style parsing only.
Pass None to completely disable style parsing. Pass None to completely disable style parsing.
@ -2058,7 +2058,7 @@ class Message(Object, Update):
parse_mode (``str``, *optional*): parse_mode (``str``, *optional*):
By default, texts are parsed using both Markdown and HTML styles. By default, texts are parsed using both Markdown and HTML styles.
You can combine both syntaxes together. You can combine both syntaxes together.
Pass "markdown" to enable Markdown-style parsing only. Pass "markdown" or "md" to enable Markdown-style parsing only.
Pass "html" to enable HTML-style parsing only. Pass "html" to enable HTML-style parsing only.
Pass None to completely disable style parsing. Pass None to completely disable style parsing.
@ -2314,7 +2314,7 @@ class Message(Object, Update):
parse_mode (``str``, *optional*): parse_mode (``str``, *optional*):
By default, texts are parsed using both Markdown and HTML styles. By default, texts are parsed using both Markdown and HTML styles.
You can combine both syntaxes together. You can combine both syntaxes together.
Pass "markdown" to enable Markdown-style parsing only. Pass "markdown" or "md" to enable Markdown-style parsing only.
Pass "html" to enable HTML-style parsing only. Pass "html" to enable HTML-style parsing only.
Pass None to completely disable style parsing. Pass None to completely disable style parsing.
@ -2412,7 +2412,7 @@ class Message(Object, Update):
parse_mode (``str``, *optional*): parse_mode (``str``, *optional*):
By default, texts are parsed using both Markdown and HTML styles. By default, texts are parsed using both Markdown and HTML styles.
You can combine both syntaxes together. You can combine both syntaxes together.
Pass "markdown" to enable Markdown-style parsing only. Pass "markdown" or "md" to enable Markdown-style parsing only.
Pass "html" to enable HTML-style parsing only. Pass "html" to enable HTML-style parsing only.
Pass None to completely disable style parsing. Pass None to completely disable style parsing.
@ -2469,7 +2469,7 @@ class Message(Object, Update):
parse_mode (``str``, *optional*): parse_mode (``str``, *optional*):
By default, texts are parsed using both Markdown and HTML styles. By default, texts are parsed using both Markdown and HTML styles.
You can combine both syntaxes together. You can combine both syntaxes together.
Pass "markdown" to enable Markdown-style parsing only. Pass "markdown" or "md" to enable Markdown-style parsing only.
Pass "html" to enable HTML-style parsing only. Pass "html" to enable HTML-style parsing only.
Pass None to completely disable style parsing. Pass None to completely disable style parsing.