mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 12:59:46 +00:00
Fix HTML entity parsing failing when needing surrogates
This commit is contained in:
@@ -152,6 +152,9 @@ def unparse(text, entities, delimiters=None, url_fmt=None):
|
||||
:param entities: the MessageEntity's applied to the text.
|
||||
:return: a markdown-like text representing the combination of both inputs.
|
||||
"""
|
||||
if not entities:
|
||||
return text
|
||||
|
||||
if not delimiters:
|
||||
if delimiters is not None:
|
||||
return text
|
||||
|
Reference in New Issue
Block a user