This is a Node.js-based Telegram bot designed to automate tasks on the SolixDepin platform, including account registration, task execution, and mining operations. The bot interacts with the SolixDepin API, handles proxies, and solves captchas to streamline operations.
- Account Management: Add, list, and delete accounts stored in
accounts.json. - Registration: Automate account registration with captcha solving using a third-party API.
- Task Automation: Perform and claim tasks for registered accounts to earn points.
- Mining: Continuously monitor account points with periodic updates via Telegram.
- Proxy Support: Use proxies for API requests to enhance anonymity and avoid rate limits.
- Admin-Only Access: Restrict bot usage to a specified Telegram admin ID.
- Error Handling: Robust handling of Telegram errors (e.g., user blocking bot) and API failures.
- Node.js: Version 22.12.0 or higher.
- Telegram Bot Token: Obtain from BotFather.
- Captcha Solving API Key: From a service like SCTG.
- Proxy List: Optional, for enhanced request routing.
-
Clone the repository:
git clone https://github.com/sinak1023/solix-auto-mining.git cd solix-auto-mining -
Install dependencies:
npm install telegraf axios https-proxy-agent uuid
-
Create required files:
accounts.json: Initialize with an empty array[]to store account details.proxy.txt: Add proxy addresses (one per line, format:http://user:pass@host:portorhttp://host:port).apikey.txt: Add your captcha solving API key.
-
Configure the bot:
- Open
index.jsand update theADMIN_IDwith your Telegram user ID. - Replace the bot token in
index.jswith your Telegram bot token.
- Open
-
Run the bot:
node index.js
-
Interact via Telegram:
- Start the bot with
/startto access the main menu. - Use inline buttons to manage accounts, set API keys, perform tasks, register new accounts, or start/stop mining.
- Only the admin (specified by
ADMIN_ID) can use the bot.
- Start the bot with
index.js: Main bot script.accounts.json: Stores account credentials and associated proxies.proxy.txt: List of proxies for API requests.apikey.txt: Captcha solving API key.LICENSE: MIT License file.
The bot includes robust error handling for:
- Telegram API errors (e.g.,
403: Forbiddenwhen blocked by users). - SolixDepin API failures with retry logic.
- Proxy validation and fallback.
- Captcha solving issues with retry attempts.
Contributions are welcome! Please:
- Fork the repository.
- Create a feature branch (
git checkout -b feature/your-feature). - Commit your changes (
git commit -m 'Add your feature'). - Push to the branch (
git push origin feature/your-feature). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
This bot is for educational purposes only. Ensure compliance with SolixDepin's terms of service and Telegram's API usage policies. The author is not responsible for any misuse or consequences of using this bot.