fix sign format
This commit is contained in:
parent
96f3b7b76f
commit
2c81d4937f
2
main.py
2
main.py
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user