telethon_extractor.telethon_extractor#

Module Contents#

class telethon_extractor.telethon_extractor.TelethonExtractor#

Bases: auto_archiver.core.Extractor

Base class for implementing extractors in the media archiving framework. Subclasses must implement the download method to define platform-specific behavior.

valid_url#
invite_pattern#
setup() 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

cleanup() None#

Called when extractors are done, or upon errors, cleanup any resources

download(item: auto_archiver.core.Metadata) auto_archiver.core.Metadata#

if this url is archivable will download post info and look for other posts from the same group with media. can handle private/public channels