From b17e4069ee936be7f97ab6f59e00284329a1f014 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sun, 17 Sep 2023 22:37:16 +0800 Subject: [PATCH] :bug: Fix parse x.com --- modules/twitter_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/twitter_api.py b/modules/twitter_api.py index 96ffdf3..3a92e41 100644 --- a/modules/twitter_api.py +++ b/modules/twitter_api.py @@ -136,7 +136,7 @@ async def process_url(url: str, reply: Reply): print(e) -@bot.on_message(filters.incoming & filters.text & filters.regex(r"twitter.com/")) +@bot.on_message(filters.incoming & filters.text & filters.regex(r"(x|twitter).com/")) async def twitter_share(_: Client, message: Message): if not message.text: return