TomarketBot is a Telegram bot that automates farming, gaming, and daily claiming tasks on the Tomarket platform. It’s built with Python and uses asynchronous programming to handle multiple tasks efficiently.
- Farming Management: Automatically starts farming tasks, checks for completion, and harvests rewards.
- Game Play & Reward Claim: Automates game playing on the Tomarket platform, ensuring rewards are claimed when the game points are within a specified range.
- Daily Rewards: Automatically claims daily rewards and calculates the next claim time.
Before setting up the bot, you need to install uv
. You can do this globally using pip. Run the following command in your terminal:
pip install uv
-
Clone the Repository: Open your terminal and run:
git clone https://github.com/Praveensenpai/TomarketBot.git cd TomarketBot
-
Sync the Environment: Run the following command to set up the environment with Python 3.10.2:
uv sync --python 3.10.2
-
Create a
.env
File: In the project folder, create a file named.env
and add the following lines:SESSION_NAME=<your_session_name> API_ID=<your_api_id> API_HASH=<your_api_hash> REF_ID=<your_referral_id> MIN_POINTS=<min_points_for_game> MAX_POINTS=<max_points_for_game>
-
SESSION_NAME
: Choose any name for your session to help the bot remember your login details. -
API_ID
andAPI_HASH
: Get these from my.telegram.org/auth?to=apps after creating an application. -
REF_ID
: This is your referral ID, which you can find in your referral link from the Tomarket bot. It will look like this:https://t.me/Tomarket_ai_bot/app?startapp=00019Or9
The
REF_ID
is the part afterstartapp=
, so in this example, it would be00019Or9
. -
MIN_POINTS
andMAX_POINTS
: Define the range of points for claiming game rewards.
-
-
Run the Bot: Finally, start the bot by running:
uv run main.py
If you prefer using pip
instead of uv
, follow these steps:
-
Clone the Repository:
git clone <repository-url> cd <repository-directory>
-
Create a Virtual Environment:
python -m venv venv
-
Activate the Virtual Environment:
- Windows:
venv\Scripts\activate
- macOS/Linux:
source venv/bin/activate
- Windows:
-
Install the Required Packages:
pip install -r requirements.txt
-
Create a
.env
File: (same as above) -
Run the Bot:
python main.py
Using uv
simplifies managing Python environments by providing better performance and easier setup than traditional virtual environments. Some benefits include:
- Simplicity: Easy project setup.
- Performance: Faster dependency management.
- Consistency: Reduces environment-related issues.
- After starting the bot, it will log in to your Telegram account and begin automating tasks like farming and daily claiming.
- Check the logs for the bot’s activity and any errors.
Contributions are welcome! If you have suggestions or improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.