1
0
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:
Badiboy 2020-07-18 21:19:47 +03:00 committed by GitHub
commit d7aaccef63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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