tgup
Upload files to Telegram using your account.
This project is partially based on telegram-upload by Nekmo, it was recreated because the original project seems abandoned.
Installation
With uv:
uvx tgup
With pipx:
pipx install tgup
With pip:
pip install tgup
Usage
To use this program you need an Telegram account and your App api_id & api_hash (get it in my.telegram.org). The first time you use tgup it requests your telephone number, api_id and api_hash. Bot tokens can not be used with this program (bot uploads are limited to 50MB).
To send files:
tgup dir1/ file1 dir2/abc/
It will send the files to your personal chat by default.
To send files to a specific channel, chat or user:
tgup --to <channel_username> dir1/ file1
tgup --to <chat_id> dir1/ file1
tgup --to <user_username> dir1/ file1
To see all the options, run: tgup --help
Acknowledgements
- Based on telegram-upload
License
This project is released under the GPL 3.0 or later license.
Release files for tgup 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tgup-0.2.4.tar.gz | 26.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tgup-0.2.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 51.8 kB
Release files / tgup-0.2.4.tar.gz
| Download URL | tgup-0.2.4.tar.gz |
|---|---|
| Size | 26.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ba22936c9125f5f327aa371b899ba9d854bed7280782a0d08e7d78ea2412d4a5
|
|
BLAKE2b-256 checksum How to use checksums |
ff12f46304c430dbc205335be3ad9383aa6b761c301610807c2e83cd5fec615b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 12, 2026.
Transparency logRelease files / tgup-0.2.4-py3-none-any.whl
| Download URL | tgup-0.2.4-py3-none-any.whl |
|---|---|
| Size | 25.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d8130fefbb6af7862c7d4fd684d865aea84242f8eb4b677f780d87b0fb7f31f6
|
|
BLAKE2b-256 checksum How to use checksums |
1170875f947b4db6819d87b16a0951d5b5e335972e2f85b25f1807eebd196854
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 12, 2026.
Transparency log