From 6c42876411f381ab60f886fcc72af86a3233c00a Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 25 Mar 2023 21:58:08 +0800 Subject: [PATCH] Update receive_faq.py --- plugins/tgbot/startup/extend/receive_faq.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/tgbot/startup/extend/receive_faq.py b/plugins/tgbot/startup/extend/receive_faq.py index c6a26b0ee..0a9e7ab23 100644 --- a/plugins/tgbot/startup/extend/receive_faq.py +++ b/plugins/tgbot/startup/extend/receive_faq.py @@ -181,6 +181,8 @@ def answer_callback_query(bot, call): def run(bot, message): text_body = message.text + + # 过滤URL is_has_url = re.search( '(https?|ftp|file)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]', text_body) if is_has_url: