🐛 Fix parse x.com

This commit is contained in:
xtaodada 2023-09-17 22:37:16 +08:00
parent 733a78e004
commit b17e4069ee
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -136,7 +136,7 @@ async def process_url(url: str, reply: Reply):
print(e) 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): async def twitter_share(_: Client, message: Message):
if not message.text: if not message.text:
return return