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.
Metadata
Release files for tgup 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tgup-0.3.0.tar.gz | 32.5 kB | With provenance | Details for tgup-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tgup-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for tgup-0.3.0-py3-none-any.whl |
Total release size: 58.1 kB
Release files / tgup-0.3.0.tar.gz
| Download URL | tgup-0.3.0.tar.gz |
|---|---|
| Size | 32.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fe24fb2fc8161bec2517d8e1ace42fd2b277bcdfd393499afbbc5f2811447ad2
|
|
BLAKE2b-256 checksum How to use checksums |
42442ebafd9c5d655fae0eec447b55e8f1003b2f0facfc6dbb5a9a83c68e6489
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 26, 2026.
Transparency logRelease files / tgup-0.3.0-py3-none-any.whl
| Download URL | tgup-0.3.0-py3-none-any.whl |
|---|---|
| Size | 25.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f8a9077bbe34841a08962105d13d702b319787a9f05c6cfa14914bda8ea41676
|
|
BLAKE2b-256 checksum How to use checksums |
6bb1c5018086e18c172e0a0e9236a83472ed619a311f316c95708c86f66c9bdd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 26, 2026.
Transparency logSecurity for tgup 0.3.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for tgup-0.3.0.tar.gz
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 Oct 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.