mirror of
https://github.com/Xtao-Labs/iShotaBot.git
synced 2024-11-24 17:19:44 +00:00
🐛 Fix parse x.com
This commit is contained in:
parent
733a78e004
commit
b17e4069ee
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user