scripts/bots/poller
2023-05-08 18:35:26 +03:00
..
poller.py added poller 2023-05-08 18:35:26 +03:00
poller.yaml added poller 2023-05-08 18:35:26 +03:00
README.md added poller 2023-05-08 18:35:26 +03:00
requirements.txt added poller 2023-05-08 18:35:26 +03:00

poller

script to load new media from telegram chats

Installation

get api_id and api_hash at https://my.telegram.org/apps

$ pip install -r requirements.txt
$ export api_id=123
$ export api_hash=abcdef....

Configuration

modify poller.yaml to change chats

channels:
  usernames:
    - https://t.me/sanspie_notes
    - @s4nspie
  ids:
    - 868474142

folders:
  - Users

Run

$ python3 poller.py

files will be downloaded to folders

Note: if you want to redownload files delete poller/.offsets.json