diff --git a/pyrogram/scaffold.py b/pyrogram/scaffold.py index a0033599..2bd23086 100644 --- a/pyrogram/scaffold.py +++ b/pyrogram/scaffold.py @@ -41,7 +41,7 @@ class Scaffold: PARENT_DIR = Path(sys.argv[0]).parent - INVITE_LINK_RE = re.compile(r"^(?:https?://)?(?:www\.)?(?:t(?:elegram)?\.(?:org|me|dog)/joinchat/)([\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"