1 parent 73edcb5 commit e01ac7aCopy full SHA for e01ac7a
1 file changed
pyrogram/scaffold.py
@@ -41,8 +41,7 @@ class Scaffold:
41
42
PARENT_DIR = Path(sys.argv[0]).parent
43
44
- # https://regex101.com/r/pme5ZE/2 Matches both the entire link and the hash itself
45
- INVITE_LINK_RE = re.compile(r"^(?:(?:https?://)?(?:www\.)?(?:t(?:elegram)?\.(?:org|me|dog)/joinchat/))?(?P<hash>[\w-]+)$")
+ INVITE_LINK_RE = re.compile(r"^(?:https?://)?(?:www\.)?(?:t(?:elegram)?\.(?:org|me|dog)/joinchat/)([\w-]+)$")
46
WORKERS = min(32, os.cpu_count() + 4)
47
WORKDIR = PARENT_DIR
48
CONFIG_FILE = PARENT_DIR / "config.ini"
0 commit comments