refactor, clear structure

This commit is contained in:
2024-06-23 22:06:27 +08:00
parent cade370538
commit c1c1d42892
7 changed files with 32 additions and 32 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
from __future__ import annotations
from common import x_url_regex
from .net import NetClient
from .regex import x_url
from .tweet import TelegramTweet
@@ -10,7 +10,7 @@ class Telegram(NetClient):
self._url = url
async def __aenter__(self):
if x_url_regex.match(self._url):
if x_url.match(self._url):
async with TelegramTweet(self._url) as tweet:
return tweet