fix sign format

This commit is contained in:
bakatrouble 2019-04-05 02:52:53 +03:00
parent 96f3b7b76f
commit 2c81d4937f

View File

@ -143,7 +143,7 @@ def _sign_text(text, m: Message, limit):
sign = ''
if text.startswith('!sign') or text.startswith('/sign'):
text = text[5:]
sign = f'\n\n — <a href="tg://user?id={m.from_user.id}">{escape(m.from_user.full_name)}</a>'
sign = f'\n\n— <a href="tg://user?id={m.from_user.id}">{escape(m.from_user.full_name)}</a>'
return text[:limit - len(sign)] + sign