An open API service indexing awesome lists of open source software.

https://github.com/zhd4/telegrambackupbot

Can send any file(s) via Telegram Bot
https://github.com/zhd4/telegrambackupbot

backup database db files python server telegram-bot

Last synced: 12 months ago
JSON representation

Can send any file(s) via Telegram Bot

Awesome Lists containing this project

README

          

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

## Configuration

Install requirements:

```shell
pip install -r requirements.txt
```

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

```dotenv
BOT_TOKEN=''
CHAT_ID=''
```

## Usage

```texta
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

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