add edit before forward

This commit is contained in:
2024-03-24 21:17:05 +08:00
parent 50161243ea
commit ee92b8d8aa
2 changed files with 72 additions and 11 deletions
+1
View File
@@ -17,6 +17,7 @@ if WEBHOOK:
x_url_regex = re.compile(r"^(?:https?://)(?:www\.|mobile\.|)(?:x|twitter)\.com/(.+)/status/(\d+)")
x_media_regex = re.compile(r"^(?:https?://)(pbs|video)\.twimg\.com/(.*)")
x_tco_regex = re.compile(r"(?:https?://)t\.co/.+$", re.M)
message_url_regex = re.compile(r"\{\w+\}", re.M)
logging.basicConfig(
level=os.getenv("LOG_LEVEL", "WARNING"),