Telegram bot for sending files to chat or channel by cron.
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 1 commit behind Qwinpin:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
config_example.py
core.py
requirements.txt
send.py
settings.py
setup.cfg
update.py

README.md

Send File Bot

Telegram bot for sending files to chat or channel by cron.

Features

  • Many file formats
  • Send files by cron
  • Send files by management commands
  • File list updating
  • Persistent storage for states
  • Statistics
  • More than one channels and chats

TODO:

  • Permissions
  • logging
  • manual management by one channel
  • tests
  • docstrings

Supported file formats

  • Plain text: .txt
  • Markdown: .md
  • HTML: .html
  • Image: .png, .jpg
  • Music: .mp3, .ogg
  • Any other file format will be sent as document.

Installation

  1. Clone or download project
  2. cp config{_example,}.py
  3. Edit config.py
  4. Place your files to path.
  5. add cron tasks.

Usage

Run management interface:

python3 update.py

Send file (you can create cron task for it):

python3 send.py "channel alias"

Or send files to all channels:

python3 send.py