disable bot_token

pull/72/head
msramalho 2023-02-02 14:01:08 +00:00
rodzic 4854929a1d
commit 32a8db1223
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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: