mirror of
https://github.com/TheFunny/TelegramTwitterMediaBot.git
synced 2026-09-26 23:52:05 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
87f0d16028
|
||
|
|
197993e522
|
||
|
|
02abcd899e
|
+1
-1
@@ -1,4 +1,4 @@
|
||||
python-telegram-bot[webhooks]~=21.3
|
||||
python-telegram-bot[webhooks]~=21.4
|
||||
httpx[http2]~=0.27
|
||||
uvloop~=0.19.0; sys_platform != 'win32'
|
||||
async-pixiv @ git+https://github.com/TheFunny/async-pixiv@main
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
import re
|
||||
|
||||
x_url = re.compile(r"^(?:https?://)?(?:www\.|mobile\.)?(?:x|twitter|fixvx|vxtwitter)\.com/(.+)/status/(\d+)")
|
||||
x_media_url = re.compile(r"^(?:https?://)(pbs|video)\.twimg\.com/(.*)")
|
||||
x_tco_url = re.compile(r"(?:https?://)t\.co/.+$", re.M)
|
||||
x_media_url = re.compile(r"^(?:https?://)?(pbs|video)\.twimg\.com/(.*)")
|
||||
x_tco_url = re.compile(r"(?:https?://)?t\.co/.+$", re.M)
|
||||
message_url = re.compile(r"\[.+]", re.S)
|
||||
|
||||
pixiv_url = re.compile(r"^(?:https?://)?(?:www\.)?pixiv\.net/(?:en/)?artworks/(\d+)")
|
||||
pixiv_url = re.compile(r"^(?:https?://)?(?:www\.)?pixiv\.net/(?:en/)?(?:artworks/|i/)(\d+)")
|
||||
|
||||
Reference in New Issue
Block a user