An application to store your local files on Telegram.
? Watch the video on YouTube
You need a Telegram API ID and API Hash. You can create a new App here.
git clone https://github.com/FujiwaraChoki/TeleSync.git
cd TeleSync
️ : In order to install the dependencies flawlessly, please follow the instructions step-by-step.
python -m venv venv
source venv/bin/activate
python -m venv venv
.venvScriptsactivate
Then, continue with the installation:
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:
chmod +x run.sh
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 ) |
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.
To add the script to the PATH in Linux, you can modify the ~/.bashrc
file:
export PATH="$PATH:/path/to/TeleSync"
To add the script to the PATH in Windows, you can follow these steps:
To run TeleSync on Linux, navigate to the TeleSync directory in your terminal and execute the following command:
./run.sh [COMMAND] [ARGUMENTS]
To run TeleSync on Windows, open Command Prompt, navigate to the TeleSync directory, and execute the following command:
.run.bat [COMMAND] [ARGUMENTS]
⚡: If you added
TeleSync
to yourPATH
, you may run the script from anywhere.
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
If you find a bug, please to open an issue. Issues that are not related to bugs will be closed.
Only Pull Requests with fixes or/and improvements will be accepted.