|
|
|
@ -124,10 +124,12 @@ def _sign_text(text, m: Message, limit):
|
|
|
|
|
if not text:
|
|
|
|
|
text = ''
|
|
|
|
|
|
|
|
|
|
sign = ''
|
|
|
|
|
if text.startswith('!sign') or text.startswith('/sign'):
|
|
|
|
|
text = text[5:] + f'\n\n____________\n' \
|
|
|
|
|
sign = f'\n\n____________\n' \
|
|
|
|
|
f'by <a href="tg://user?id={m.from_user.id}">{escape(m.from_user.full_name)}</a>'
|
|
|
|
|
return text[:limit]
|
|
|
|
|
|
|
|
|
|
return text[:limit - len(sign)] + sign
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def _process_message(bot: Bot, m: Message):
|
|
|
|
|