From f38fce1550a471085c3bde1353ca0b96d929a8d9 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Mon, 9 Dec 2019 02:22:07 +0300 Subject: [PATCH] show real text for tg:// links --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index 73569c1..54c7fb3 100755 --- a/main.py +++ b/main.py @@ -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'.*?', '\\1', text) + sign = '' if text.startswith('!sign') or text.startswith('/sign'): text = text[5:]