mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Update util.py
This commit is contained in:
parent
ae20cb9f31
commit
4ed460b137
@ -401,8 +401,9 @@ def escape(text: str) -> str:
|
||||
chars = {"&": "&", "<": "<", ">": ">"}
|
||||
if text is None:
|
||||
return None
|
||||
for old, new in chars.items(): text = text.replace(old, new)
|
||||
return text
|
||||
for old, new in chars.items():
|
||||
text = text.replace(old, new)
|
||||
return text
|
||||
|
||||
|
||||
def user_link(user: types.User, include_id: bool=False) -> str:
|
||||
|
Loading…
Reference in New Issue
Block a user