Telegram bot making without any line of code.
Project description
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]
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 tytg-0.2.6.2.tar.gz.
File metadata
- Download URL: tytg-0.2.6.2.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04119321fa655d6cda0e5c081700050dff15714a4558b40231eeca99aec94a33
|
|
| MD5 |
240935ff19817bffd5d1d89a395709a1
|
|
| BLAKE2b-256 |
6b4beffdb36c7c112561c9b3d5823785080606d120736e78880a3837a41517ef
|
File details
Details for the file tytg-0.2.6.2-py3-none-any.whl.
File metadata
- Download URL: tytg-0.2.6.2-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e64ea58aa7cfa8b065fd883c56790830b01a4009685502dbfbf49711dbbcc311
|
|
| MD5 |
cffe6d30aa3a6ddf2711938e73423bdf
|
|
| BLAKE2b-256 |
25e079a3e0f860b730cdd067c244acda0113fb7bb6080e9aaf03d66f3f22a55a
|