fix according to bot api

This commit is contained in:
Zaid _ 2024-06-20 04:33:06 +03:00
parent 32c10eafe7
commit c909221042

View File

@ -48,7 +48,7 @@ class HTMLToTelegramParser(HTMLParser):
EntityType = MessageEntityStrike EntityType = MessageEntityStrike
elif tag == "blockquote": elif tag == "blockquote":
EntityType = MessageEntityBlockquote EntityType = MessageEntityBlockquote
elif tag == "spoiler": elif tag == "spoiler" or tag == "tg-spoiler":
EntityType = MessageEntitySpoiler EntityType = MessageEntitySpoiler
elif tag == "code": elif tag == "code":
try: try: