mirror of
https://github.com/TheFunny/TelegramTwitterMediaBot.git
synced 2026-09-23 23:32:05 +00:00
fix regex match group
This commit is contained in:
+1
-1
@@ -158,7 +158,7 @@ class ProcessTweet:
|
||||
async def _fetch_tweet(self) -> TweetInfo:
|
||||
match = x_url_regex.match(self._url)
|
||||
assert match, f"Invalid URL: {self._url}"
|
||||
auther_id, tweet_id = match.group()
|
||||
auther_id, tweet_id = match.groups()
|
||||
return await fetch_json(self._httpx_client, vx_api_url.format(auther_id, tweet_id))
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user