mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Merge pull request #917 from EskiSlav/master
Added strike and underline entities to parse to html
This commit is contained in:
commit
d7aaccef63
@ -479,8 +479,11 @@ class Message(JsonDeserializable):
|
|||||||
"pre" : "<pre>{text}</pre>",
|
"pre" : "<pre>{text}</pre>",
|
||||||
"code" : "<code>{text}</code>",
|
"code" : "<code>{text}</code>",
|
||||||
#"url" : "<a href=\"{url}\">{text}</a>", # @badiboy plain URLs have no text and do not need tags
|
#"url" : "<a href=\"{url}\">{text}</a>", # @badiboy plain URLs have no text and do not need tags
|
||||||
"text_link": "<a href=\"{url}\">{text}</a>"
|
"text_link": "<a href=\"{url}\">{text}</a>",
|
||||||
|
"strikethrough": "<s>{text}</s>",
|
||||||
|
"underline": "<u>{text}</u>"
|
||||||
}
|
}
|
||||||
|
|
||||||
if hasattr(self, "custom_subs"):
|
if hasattr(self, "custom_subs"):
|
||||||
for key, value in self.custom_subs.items():
|
for key, value in self.custom_subs.items():
|
||||||
_subs[key] = value
|
_subs[key] = value
|
||||||
|
Loading…
Reference in New Issue
Block a user