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