From 32a8db12238471167afd3dca7a9a89a8eedfd75a Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Thu, 2 Feb 2023 14:01:08 +0000 Subject: [PATCH] disable bot_token --- src/auto_archiver/archivers/telethon_archiver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/auto_archiver/archivers/telethon_archiver.py b/src/auto_archiver/archivers/telethon_archiver.py index f30f2a4..1490744 100644 --- a/src/auto_archiver/archivers/telethon_archiver.py +++ b/src/auto_archiver/archivers/telethon_archiver.py @@ -111,8 +111,8 @@ class TelethonArchiver(Archiver): result = Metadata() # NB: not using bot_token since then private channels cannot be archived: self.client.start(bot_token=self.bot_token) - # with self.client.start(): - with self.client.start(bot_token=self.bot_token): + with self.client.start(): + # with self.client.start(bot_token=self.bot_token): try: post = self.client.get_messages(chat, ids=post_id) except ValueError as e: