From 3efb83522253b2f64b2599398db667054dd5b1dd Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Thu, 16 Jun 2022 18:06:17 +0200 Subject: [PATCH] fix: telethon bad regex for ?single --- archivers/telethon_archiver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivers/telethon_archiver.py b/archivers/telethon_archiver.py index 2f4de02..166996c 100644 --- a/archivers/telethon_archiver.py +++ b/archivers/telethon_archiver.py @@ -13,7 +13,7 @@ from utils import getattr_or class TelethonArchiver(Archiver): name = "telethon" - link_pattern = re.compile(r"https:\/\/t\.me(\/c){0,1}\/(.+)\/(.+)") + link_pattern = re.compile(r"https:\/\/t\.me(\/c){0,1}\/(.+)\/(\d+)") def __init__(self, storage: Storage, driver, config: TelethonConfig): super().__init__(storage, driver)