pull/72/head
msramalho 2023-02-02 12:20:30 +00:00
rodzic 8b8845d607
commit ab4bce6602
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -114,8 +114,9 @@ class TelethonArchiver(Archiver):
# 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):
post = self.client.get_messages(chat, ids=post_id)
try:
post = self.client.get_messages(chat, ids=post_id)
pass
except ValueError as e:
logger.error(f"Could not fetch telegram {url} possibly it's private: {e}")
return False