diff --git a/pyrogram/scaffold.py b/pyrogram/scaffold.py index 434c5bb4..a0033599 100644 --- a/pyrogram/scaffold.py +++ b/pyrogram/scaffold.py @@ -41,8 +41,7 @@ class Scaffold: PARENT_DIR = Path(sys.argv[0]).parent - # https://regex101.com/r/pme5ZE/2 Matches both the entire link and the hash itself - INVITE_LINK_RE = re.compile(r"^(?:(?:https?://)?(?:www\.)?(?:t(?:elegram)?\.(?:org|me|dog)/joinchat/))?(?P[\w-]+)$") + INVITE_LINK_RE = re.compile(r"^(?:https?://)?(?:www\.)?(?:t(?:elegram)?\.(?:org|me|dog)/joinchat/)([\w-]+)$") WORKERS = min(32, os.cpu_count() + 4) WORKDIR = PARENT_DIR CONFIG_FILE = PARENT_DIR / "config.ini"