Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Backup Bot

Script for sending files via Telegram Bot, can be used for backup (for example with cron).

Configuration

Install requirements:

pip install -r requirements.txt

Create environment file (.env) with the following variables:

BOT_TOKEN='<your Telegram Bot token>'
CHAT_ID='<your chat id>'

Usage

usage: tgb.py [-h] [-e ENV_PATH] FILE [FILE ...]

Can send any file(s) via Telegram Bot

positional arguments:
  FILE                  Path(s) to target file(s)

options:
  -h, --help            show this help message and exit
  -e ENV_PATH, --env-path ENV_PATH
                        Path to configuration environment file (default: .env)

Example

python tgb.py image.jpg text.txt archive.zip database.db -e config.env

About

Can send any file(s) via Telegram Bot

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages