Upload (and download) files to Telegram up to 4 GiB using your account.
Project description
Upload and download files to Telegram up to 4 GiB (2 GiB for free users) using your personal account. Turn Telegram into your personal ☁ cloud!
To install 🔧 tg-up, run this command in your terminal:
$ pip install tg-up
Or from source:
$ pip install -e <path-to-repo>
🐍 Python 3.7-3.13 supported.
❓ Usage
To use this program you need a Telegram account and your App api_id & api_hash (get it in my.telegram.org). The first time you use tg-up it requests your 📱 telephone, api_id and api_hash. Bot tokens cannot be used (bot uploads are limited to 50MB).
To send ⬆️ files (default: saved messages):
$ tg-up file1.mp4 file2.mkv
To reply to a specific message:
$ tg-up video.mp4 --to @chat --reply-to 12345
You can download ⤵️ files from your saved messages (default) or from a channel:
$ tg-dw
Interactive mode
The interactive option (--interactive) allows you to choose the dialog and the files with a terminal 🪄 wizard:
$ tg-up --interactive # Interactive upload
$ tg-dw --interactive # Interactive download
Set group or chat
For upload, use --to <entity>:
$ tg-up --to @channel video.mkv
For download, use --from <entity>:
$ tg-dw --from username
Reply to a message
You can reply to a specific message ID with --reply-to:
$ tg-up file.mp4 --to @chat --reply-to 42
Split & join files
Enable ✂ split mode for large files:
$ tg-up --large-files split large-video.mkv
Rejoin on download:
$ tg-dw --split-files join
Delete on success
--delete-on-success deletes the Telegram message after downloading / the local file after uploading.
Configuration
Credentials saved in ~/.config/tg-up.json and ~/.config/tg-up.session. You can copy these 📁 files to authenticate on more machines.
More options
Customize thumbnail (--thumbnail-file), caption with variables (--caption), proxy (--proxy / TG_UP_PROXY), parallel upload blocks (TG_UP_PARALLEL_UPLOAD_BLOCKS), and more.
💡 Features
Upload and download multiples files (up to 4 GiB).
Interactive mode.
Reply to a specific message (--reply-to).
Add video thumbs.
Split and join large files.
Delete local or remote file on success.
Use variables in the caption message.
Proxy support (http, socks4/5, mtproxy).
Parallel upload blocks (env: TG_UP_PARALLEL_UPLOAD_BLOCKS).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yaichi_tg-0.1.0.tar.gz.
File metadata
- Download URL: yaichi_tg-0.1.0.tar.gz
- Upload date:
- Size: 279.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf929fca305f222767c8024ba0305c3cc6e3cae3ffcf84becb5a392ae27500c3
|
|
| MD5 |
bf254bc024d8930257f23dc42ebe7cbb
|
|
| BLAKE2b-256 |
ad30f88935d42214ddffa3d9942ed91c7274ce8a8b66d3d51679debabfbc7c70
|
File details
Details for the file yaichi_tg-0.1.0-py2.py3-none-any.whl.
File metadata
- Download URL: yaichi_tg-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 46.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7103d76b2619cc9ad7d5f1ef738bb520f784d3e38cf48520dd35ab90c618009b
|
|
| MD5 |
d33a2918c2f382124f9dd919f8e493bb
|
|
| BLAKE2b-256 |
45f27e079e3bb1a353ce477d1492147e7fd36a288536fec0cdefd556fe3c8e92
|