|
|
|
@ -2,6 +2,7 @@
|
|
|
|
|
|
|
|
|
|
import logging
|
|
|
|
|
import os
|
|
|
|
|
import re
|
|
|
|
|
import traceback
|
|
|
|
|
from datetime import datetime, timedelta
|
|
|
|
|
from html import escape
|
|
|
|
@ -144,6 +145,8 @@ def _sign_text(text, m: Message, limit):
|
|
|
|
|
if not text:
|
|
|
|
|
text = ''
|
|
|
|
|
|
|
|
|
|
text = re.sub(r'<a href="(tg://.*?)">.*?</a>', '<a href="\\1">\\1</a>', text)
|
|
|
|
|
|
|
|
|
|
sign = ''
|
|
|
|
|
if text.startswith('!sign') or text.startswith('/sign'):
|
|
|
|
|
text = text[5:]
|
|
|
|
|