Skip to content

orsinium-labs/send-file-bot

master
Switch branches/tags
Code
This branch is 1 commit behind Qwinpin:master.
Contribute

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%