/Blum-Telethon

Python bot for telegram blum bot with new structure

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Static Badge

Static Badge

Static Badge

Recommendation before use

🔥🔥 PYTHON version must be 3.10 🔥🔥

🔥🔥 FOR LOCAL games Node.js 20+ is a MUST 🔥🔥

🇷 🇺 README in russian available here

Features

Feature Supported
Multithreading ✅
Proxy binding to session ✅
Auto-register your account with your referral link ✅
Auto-game with a choice of random points ✅
Supports telethon AND pyrogram .session ✅

Script searches for session files in the following folders:

  • /sessions
  • /sessions/pyrogram
  • /session/telethon
Settings Description
API_ID / API_HASH Platform data from which to run the Telegram session (default - android)
GLOBAL_CONFIG_PATH Specifies the global path for accounts_config, proxies, sessions.
Specify an absolute path or use an environment variable (default environment variable: TG_FARM)
If no environment variable exists, uses the script directory.
FIX_CERT Try to fix SSLCertVerificationError ( True / False )
TRACK_BOT_UPDATES Tracks bot updates and stops bot from running, if bot is updated (default: True)
PLAY_GAMES Play games or just start farming (True)
GAMES_PER_CYCLE Amount of games to play ([min, max])
PAYLOAD_API_KEY API is a must, if you want the bot to play games (can purchase from https://zuy-web.vercel.app/blum/en)
POINTS Points per game (default is [190, 230] ((That is, 190 to 230)
SESSION_START_DELAY Random start delay for sessions (From 1 to X. default is 360 )
USE_REF Register accounts with ur referral or not (False)
REF_ID Your referral argument (comes after app/startapp? in your referral link)
SESSIONS_PER_PROXY Amount of sessions, that can share same proxy ( 1 )
USE_PROXY_FROM_FILE Whether to use a proxy from the bot/config/proxies.txt file (True / False)
DISABLE_PROXY_REPLACE Disable automatic checking and replacement of non-working proxies before startup (True / False)
DEVICE_PARAMS Enter device settings to make the telegram session look more realistic (True / False)
DEBUG_LOGGING Whether to log error's tracebacks to /logs folder (True / False)

Quick Start 📚

To fast install libraries and run bot - open run.bat on Windows or run.sh on Linux

Prerequisites

Before you begin, make sure you have the following installed:

Obtaining API Keys

  1. Go to my.telegram.org and log in using your phone number.
  2. Select "API development tools" and fill out the form to register a new application.
  3. Record the API_ID and API_HASH provided after registering your application in the .env file.

Installation

You can download the repository by cloning it to your system and installing the necessary dependencies:

git clone https://github.com/SP-l33t/Blum-Telethon.git
cd Blum-Telethon

Then you can do automatic installation by typing:

Windows:

run.bat

Linux:

run.sh

Linux manual installation

sudo sh install.sh
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
cp .env-example .env
nano .env  # Here you must specify your API_ID and API_HASH, the rest is taken by default
python3 main.py

You can also use arguments for quick start, for example:

~/Blum-Telethon >>> python3 main.py --action (1/2)
# Or
~/Blum-Telethon >>> python3 main.py -a (1/2)

# 1 - Run clicker
# 2 - Creates a session

Windows manual installation

python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
copy .env-example .env
# Here you must specify your API_ID and API_HASH, the rest is taken by default
python main.py

You can also use arguments for quick start, for example:

~/Blum-Telethon >>> python main.py --action (1/2)
# Or
~/Blum-Telethon >>> python main.py -a (1/2)

# 1 - Run clicker
# 2 - Creates a session

Credits:

Thanks to sanjithacks for help with Blum payload encryption