Update receive_faq.py

This commit is contained in:
midoks 2023-03-25 21:58:08 +08:00
parent 79471e3806
commit 6c42876411
1 changed files with 2 additions and 0 deletions

View File

@ -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: