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
- Host: GitHub
- URL: https://github.com/zhd4/telegrambackupbot
- Owner: zHd4
- Created: 2025-04-04T09:02:03.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-04T20:27:39.000Z (about 1 year ago)
- Last Synced: 2025-04-04T21:30:19.055Z (about 1 year ago)
- Topics: backup, database, db, files, python, server, telegram-bot
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```