Merge branch 'pyrogram:master' into mtpager

This commit is contained in:
Sam 2022-01-21 23:03:10 +08:00 committed by GitHub
commit 4544782b13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,10 +155,10 @@ class HTML:
start = entity.offset
end = start + entity.length
if entity_type in ("bold", "italic", "underline", "strikethrough", "spoiler"):
if entity_type in ("bold", "italic", "underline", "strikethrough"):
start_tag = f"<{entity_type[0]}>"
end_tag = f"</{entity_type[0]}>"
elif entity_type in ("code", "pre", "blockquote"):
elif entity_type in ("code", "pre", "blockquote", "spoiler"):
start_tag = f"<{entity_type}>"
end_tag = f"</{entity_type}>"
elif entity_type == "text_link":