Skip to content

Commit 34b6002

Browse files
committed
Fix joinchat links regex
1 parent f7db103 commit 34b6002

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyrogram/scaffold.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Scaffold:
4141

4242
PARENT_DIR = Path(sys.argv[0]).parent
4343

44-
INVITE_LINK_RE = re.compile(r"^(?:https?://)?(?:www\.)?(?:t(?:elegram)?\.(?:org|me|dog)/joinchat/)([\w-]+)$")
44+
INVITE_LINK_RE = re.compile(r"^(?:https?://)?(?:www\.)?(?:t(?:elegram)?\.(?:org|me|dog)/(?:joinchat/|\+))([\w-]+)$")
4545
WORKERS = min(32, os.cpu_count() + 4)
4646
WORKDIR = PARENT_DIR
4747
CONFIG_FILE = PARENT_DIR / "config.ini"

0 commit comments

Comments
 (0)