telethon_extractor
==================

.. py:module:: telethon_extractor


Submodules
----------

.. toctree::
   :maxdepth: 1

   /autoapi/telethon_extractor/telethon_extractor/index




Package Contents
----------------

.. py:class:: TelethonExtractor

   Bases: :py:obj:`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.


   .. py:attribute:: valid_url


   .. py:attribute:: invite_pattern


   .. py:method:: 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



   .. py:method:: cleanup() -> None

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



   .. py:method:: 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



