This bot provides a convenient and intuitive interface for creating, managing and configuring .ton
and .t.me
subdomains in the TON
network.
- Bot example: @TONSubdomainBot
-
Main: Deploying a smart contract and setting up a TON site, storage and wallet address.
-
TON-Connect Integration: Seamless integration with TON-Connect for a secure and user-friendly experience.
-
Multilingual Support: The bot is available in both Russian and English, allowing users to interact in their preferred language.
-
Testnet and Mainnet Support: The bot supports both testnet and mainnet environments, providing flexibility for testing and deployment.
-
Clone the repository:
git clone https://github.com/nessshon/ton-subdomain.git
-
Change into the bot directory:
cd ton-subdomain/bot
-
Clone environment variables file:
cp .env.example .env
-
Configure environment variables variables file:
nano .env
-
Running a bot in a docker container:
docker-compose up --build
Here is a reference guide for the environment variables used in the project:
Variable | Type | Description | Example |
---|---|---|---|
BOT_TOKEN | str | Bot token, obtained from @BotFather | 123456:qweRTY |
BOT_DEV_ID | int | User ID of the bot developer or admin | 123456789 |
TON_CONNECT_MANIFEST_URL | str | tonconnect manifest URL | https://...json |
REDIS_HOST | str | The hostname or IP address of the Redis server | redis |
REDIS_PORT | int | The port number on which the Redis server is running | 6379 |
REDIS_DB | int | The Redis database number | 1 |
TONAPI_KEY | str | TONAPI API key from tonconsole.com | AE33EX..ASD32 |
TONAPI_MAX_RETRIES | int | Maximum number of retries per request if rate limit is reached | 5 |