https://github.com/fujiwarachoki/telesync
Store your files on Telegram (Unlimited Storage).
https://github.com/fujiwarachoki/telesync
backup cli files google-drive onedrive sync telegram
Last synced: 3 months ago
JSON representation
Store your files on Telegram (Unlimited Storage).
- Host: GitHub
- URL: https://github.com/fujiwarachoki/telesync
- Owner: FujiwaraChoki
- License: gpl-3.0
- Created: 2024-02-05T13:13:15.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-28T21:26:23.000Z (over 1 year ago)
- Last Synced: 2025-06-17T04:08:22.559Z (4 months ago)
- Topics: backup, cli, files, google-drive, onedrive, sync, telegram
- Language: Python
- Homepage:
- Size: 48.8 KB
- Stars: 133
- Watchers: 6
- Forks: 20
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TeleSync
An application to store your local files on Telegram.
> 📸 Watch the video on [YouTube](https://youtu.be/vCAcc_q-NNw)
## Features
- Infinite storage (No limit)
- Easy to use
- Fast and secure
- Free & Open Source## Prerequisites
You need a Telegram API ID and API Hash.
You can create a new App [here](https://my.telegram.org/apps).## Installation
```bash
git clone https://github.com/FujiwaraChoki/TeleSync.git
cd TeleSync
```> ⚠️: In order to install the dependencies flawlessly, please follow the instructions step-by-step.
## Linux
```bash
python -m venv venv
source venv/bin/activate
```## Windows
```bash
python -m venv venv
.\venv\Scripts\activate
```Then, continue with the installation:
```bash
pip install -r requirements.txt
# Copy the example.config.json to config.json
cp example.config.json config.json # Edit the config.json file with your own settings
```Next, give the `run.sh` Shell-Script executable permissions:
```bash
chmod +x run.sh
```## Configuration
| Option | Description |
| -------------- | -------------------------------------------------------------------------- |
| `api_id` | Your Telegram API ID. |
| `api_hash` | Your Telegram API Hash. |
| `phone_number` | Your phone number, which you use for Telegram. |
| `db_file` | The name of the database file. (Default: `files.db`) |
| `verbose` | If `true`, the application will print more information. (Default: `false`) |### Commands
| Command | Description |
| ----------------------- | -------------------------------------- |
| `upload [FILE_QUERY]` | Upload a file to Telegram |
| `download [FILE_QUERY]` | Download a file from Telegram |
| `remove [FILE_QUERY]` | Delete a file from Telegram |
| `list` | List all files in the Telegram Channel |`FILE_QUERY` can be the file name, file path, the ID of the file, or a part of the file name.
## Adding Script to PATH
### Linux
To add the script to the PATH in Linux, you can modify the `~/.bashrc` file:
```bash
export PATH="$PATH:/path/to/TeleSync"
```
### WindowsTo add the script to the PATH in Windows, you can follow these steps:
1. Search for "Environment Variables" in the Start menu.
2. Click on "Edit the system environment variables".
3. In the System Properties window, click on the "Environment Variables..." button.
4. In the Environment Variables window, under System variables, find the Path variable and select it.
5. Click on the "Edit..." button.
6. Click on the "New" button and add the path to the TeleSync directory.
7. Click "OK" on all windows to apply the changes.## Running
### Linux
To run TeleSync on Linux, navigate to the TeleSync directory in your terminal and execute the following command:
```bash
./run.sh [COMMAND] [ARGUMENTS]
```### Windows
To run TeleSync on Windows, open Command Prompt, navigate to the TeleSync directory, and execute the following command:
```bash
.\run.bat [COMMAND] [ARGUMENTS]
```> ⚡: If you added `TeleSync` to your `PATH`, you may run the script from anywhere.
## License
This project is licensed under the GNU General Public License v3.0 - see the [LICENSE](LICENSE) file for details.
## Issues
If you find a **bug**, please to open an [issue](https://github.com/FujiwaraChoki/TeleSync/issues). Issues that are not related to bugs will be closed.
## Contributing
Only **Pull Request**s with **fixes** or/and **improvements** will be accepted.