This guide includes the steps to install and run your TRON Telegram bot.
If Python is not installed on your computer, download Python 3.12.4 from here. Don't forget to check the "Add Python to PATH" option during the installation.
Open the command prompt (cmd) and enter the following commands in order:
pip install aiogram
pip install aiosqlite
pip install httpx
pip install glqiwiapi
pip install tronapi
In this step, you need to create a TronLink PRO wallet on your mobile device (Android).
-
Download the TronLink PRO app.
-
Register.
-
Click the "Me" button.
-
Go to the "Public Account Management" section.
-
Click "Back Up Private Key" and enter the password you specified earlier.
-
Copy your private key and go to step 4.
Open the config.py
file located in the data
folder and fill in the necessary information.
- If you want to use the Yoomoney payment system, the file includes a description of how to get tokens.
- If you do not specify the
key
parameter in a payment system, that payment system will be removed from the list and will not work.
You can optionally delete the db.db
file. The bot will create a new file.
-
Go to @BotFather.
-
Type
/mybots
. -
Select your bot.
-
Click "Bot Settings".
-
Activate the "Inline Mode" option.
Start your bot by opening the start.bat
file.
Check and test all the functions of your bot.