BlumBot is a Telegram bot that helps you automate tasks on the Blum platform. It’s built with Python and uses the Pyrogram library.
- Farming Management: Automatically start farming tasks and claim rewards.
- Play and Claim Game Rewards: Disabled Temporarily(MIN_POINTS to MAX_POINTS).
- 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/BlumBot.git cd BlumBot
-
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 you like for your session. This helps the bot remember your login details. You could use something like your Telegram username. -
API_ID
: Get yourAPI_ID
from my.telegram.org/auth?to=apps. Log in and create a new application. YourAPI_ID
will be displayed after creation. -
API_HASH
: This will be shown alongside yourAPI_ID
after creating your application. -
REF_ID
: This is your referral ID. Generate it by visiting the Blum app and looking for your referral link. It will look like this: vbnethttps://t.me/blum/app?startapp=ref_pMt7QOvG1e
TheREF_ID
is the part afterstartapp=
, so in this case, it'sref_pMt7QOvG1e
. -
MIN_POINTS
andMAX_POINTS
: These values define the range of points for playing games and claiming 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
-
-
Install the Required Packages:
pip install -r requirements.txt
-
Create a
.env
File: (same as above) -
Run the Bot:
python main.py
Using uv
makes it easier to manage Python environments. It’s faster and simpler than traditional virtual environments. Here are some benefits:
- Simplicity: Easy setup for new projects.
- Performance: Quicker dependency management.
- Consistency: Helps avoid environment issues across different machines.
- After running the bot, it will log in with your Telegram account and start managing your farming tasks.
- Check the logs to see the bot’s actions 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.
Let me know if there are any other changes you'd like!