Skip to main content

TyTg: Thank You Telegram!

Create a telegram bot for any purpose, or remotely control your pc with one. TyTg is written in Python3 and should work on any linux distribution.

TyTg allows users to navigate in a folder in a hosting pc. Directories are shown as Telegram buttons, allowing the creation of custom bots. Also, *.txt files are sent as messages, *.png &co are sent as images. You can also create *.tgfile containing a Telegram ID to send files. This allows to create bots by simply managing directories.

You can also sort directories by putting {number} in their names. The {number} won't be showed in the button, but it'll be used to sort directories. If directory names ends with numbers, they'll be automatically sorted too.

TyTg will soon add support to change the directories and files remotely using the bot. It will allow to edit text, upload images, files, and so on. You'll also be able to run bash commands. TyTg also support inserting python scripts in the folders that allows making even more complex bots by adding features such as searching files by writing their names.

Finally, TyTg supports adding modules/ that get called on certain commands by admins. A built-in example is announce.py, that allows annuncing a message to every user by replying to that message with /announce. Also, TyTg saves what every user downloads, how many downloads he did, how many total downloads has a certain file, and so on.

Example:

Just look into the "main" folder:

[<3] tree main
main
|-- How\ To\ Use\ {1}
|   `-- instructions.html
|-- Repository\ {0}
|   `-- link.html
|-- cat.jpg
`-- hello.txt

This will become:

And:

Setting up is quite easy:

python -m tytg main/ TOKEN

After the first time, the token will be saved, toghether with all the arguments, to a .data.json file inside main/, making it unnecessary:

python -m tytg main/

If you're using the tytg.py file instead of installing with pip, you can use:

python tytg.py main/ [TOKEN]

Metadata

Release files for tytg 0.2.7.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tytg 0.2.7.2
File Size Uploaded Provenance Actions
tytg-0.2.7.2.tar.gz 6.3 kB Without provenance Details for tytg-0.2.7.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tytg 0.2.7.2
File Interpreter ABI Platform Actions
tytg-0.2.7.2-py3-none-any.whl Python 3 none any Details for tytg-0.2.7.2-py3-none-any.whl

Total release size: 16.0 kB

Release files / tytg-0.2.7.2.tar.gz

Download URL tytg-0.2.7.2.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
77e7ae301e6330a9966e1b87037e8c272ece4334350d47d28e0079ac061350ed
BLAKE2b-256 checksum
How to use checksums
16f3c99ce8af780e1d3de6804cc5fcc06aa8611259c7515b30389369ea2e31c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

Release files / tytg-0.2.7.2-py3-none-any.whl

Download URL tytg-0.2.7.2-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae0fdb4ca58a26eab2d22aaf12b9b0070c6aef3912011970358a67b2abc8f748
BLAKE2b-256 checksum
How to use checksums
e8d329b5071f2d78af38003f08f9104bef280ba298a29cfca58a3399e0cd2aa2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

Security for tytg 0.2.7.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page