kopia lustrzana https://github.com/bellingcat/auto-archiver
fix telethon_extractor setup
rodzic
977f06c37a
commit
d90d3cec28
|
@ -18,12 +18,13 @@ class TelethonExtractor(Extractor):
|
|||
invite_pattern = re.compile(r"t.me(\/joinchat){0,1}\/\+?(.+)")
|
||||
|
||||
|
||||
def setup(self) -> None:
|
||||
def setup(self, config: dict) -> None:
|
||||
"""
|
||||
1. makes a copy of session_file that is removed in cleanup
|
||||
2. trigger login process for telegram or proceed if already saved in a session file
|
||||
3. joins channel_invites where needed
|
||||
"""
|
||||
super().setup(config)
|
||||
logger.info(f"SETUP {self.name} checking login...")
|
||||
|
||||
# make a copy of the session that is used exclusively with this archiver instance
|
||||
|
|
Ładowanie…
Reference in New Issue