Giter VIP home page Giter VIP logo

blum's Introduction

Software for Blum telegram Bot

Requirements

  • Python 3.11 (you can install it here)
  • Telegram API_ID and API_HASH (you can get them here)
  1. Install the required dependencies:

    pip install -r requirements.txt
  2. Get your API_ID and API_HASH:

    • Go to my.telegram.org
    • Sign in with your Telegram account
    • Create a new application to get your API_ID and API_HASH
  3. Configure the application:

    • Open config.py and add your API_ID and API_HASH:

      API_ID = your_api_id
      API_HASH = 'your_api_hash'
    • If you want to use a proxy, set USE_PROXY in config.py to True, otherwise set it to False:

      USE_PROXY = True  # or False
    • If USE_PROXY is True, open proxy.txt and fill it out using the example provided. Ensure there are no extra lines in the file. Proxy format : ip:port:login:password session_name, session name is which use this proxy (WITHOUT .session, only session name)

    192.168.1.1:1234:username:password session1
    192.168.1.2:2934:username:password session2
    192.168.1.3:3834:username:password session3
    192.168.5.1:2884:username:password session4

    And don't forget set proxy type in config.py

    PROXY_TYPE = "socks5" # or http
  4. IMPORTANT Create a sessions folder

Usage

  1. Run the bot:

    python main.py
  2. The software will work with all accounts using the single API_ID and API_HASH. No need to change them for each account.

Important Notes

  • Python Version: The software runs on Python 3.11. Using a different version may cause errors.
  • DONT USE MAIN ACCOUNT BECAUSE THERE IS ALWAYS A CHANCE TO GET BANNED IN TELEGRAM

Thank you for using Blum Telegram Bot! Don't forget to follow our Telegram channel for updates.

Ton wallet for donations : UQCLxqnBscAH1i8WNU2qfqXrAKCd5AoNgbuNrvZHTZOLI3Yg

blum's People

Contributors

petyasoft avatar supermakchiken22 avatar

Stargazers

Mohsen Aghandideh avatar  avatar lsagynbekovl avatar Alex Dot dev avatar BitBro avatar  avatar Meisam Maani avatar Arvin avatar  avatar  avatar Ivan Kuznetsov avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar BADBOYcoder33 avatar  avatar Avante Foundation avatar Cosmic avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar Andrew Ramadan avatar hecker avatar Ali Alami avatar  avatar ArthurCRocha avatar  avatar  avatar  avatar Akram Mousa avatar  avatar  avatar shen avatar  avatar  avatar Lelouch_fanboy avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar Aidar avatar Dima Koval avatar  avatar shellshocks avatar  avatar Kamron Shuhratjonov avatar Sergey avatar  avatar Роберт Ахметзянов avatar ClosedClose avatar FAT avatar captaincats avatar  avatar  avatar  avatar tempnine avatar  avatar Lucas Nguyen avatar  avatar ddcx1so avatar  avatar Acker avatar  avatar  avatar Denys K avatar AleksMD avatar  avatar  avatar artemgoncarov avatar #iCoderNet avatar Vũ Tiến Anh avatar Barış Özdemir avatar Bohdan Tarasov avatar Xyvegod avatar Eugene Shlapakov avatar  avatar Rustam4ick avatar  avatar Eugene avatar Степан Шимигонов  avatar  avatar  avatar  avatar bigbob_52 avatar  avatar  avatar

Watchers

Alex Dot dev avatar  avatar Why? avatar Hongjun Yi avatar  avatar  avatar  avatar

blum's Issues

venv

Будет очень приятно и полезно запускать в виртуальной среде.
Бубунта это любит.

Есть какие-то команды в тг боте?

Тобеж, если нет, то можно было бы добавить что-то по типу остановки/начала сборки алмазов, вплоть до полной остановки скрипта, как по мне, достаточно удобно, учитывая, что скрипт уже имеет возможность быть подвязанным к тг

aiohttp.client_exceptions.ServerDisconnectedError: Server disconnected

Is this project still works? I've tried proxies from Hong Kong and Russia. And the telegram login is ok.

Traceback (most recent call last):
  File "C:\Users\dev\Documents\web3\farm\Blum\main.py", line 39, in <module>
    asyncio.get_event_loop().run_until_complete(main())
  File "D:\Python\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "C:\Users\dev\Documents\web3\farm\Blum\main.py", line 36, in main
    await asyncio.gather(*tasks)
  File "C:\Users\dev\Documents\web3\farm\Blum\utils\blum.py", line 40, in main
    await self.login()
  File "C:\Users\dev\Documents\web3\farm\Blum\utils\blum.py", line 127, in login
    resp = await self.session.post("https://gateway.blum.codes/v1/auth/provider/PROVIDER_TELEGRAM_MINI_APP", json=json_data, proxy = self.proxy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\dev\Documents\web3\farm\Blum\venv\Lib\site-packages\aiohttp\client.py", line 581, in _request
    conn = await self._connector.connect(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\dev\Documents\web3\farm\Blum\venv\Lib\site-packages\aiohttp\connector.py", line 544, in connect
    proto = await self._create_connection(req, traces, timeout)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\dev\Documents\web3\farm\Blum\venv\Lib\site-packages\aiohttp\connector.py", line 942, in _create_connection
    _, proto = await self._create_proxy_connection(req, traces, timeout)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\dev\Documents\web3\farm\Blum\venv\Lib\site-packages\aiohttp\connector.py", line 1329, in _create_proxy_connection
    resp = await proxy_resp.start(conn)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\dev\Documents\web3\farm\Blum\venv\Lib\site-packages\aiohttp\client_reqrep.py", line 976, in start
    message, payload = await protocol.read()  # type: ignore[union-attr]
                       ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\dev\Documents\web3\farm\Blum\venv\Lib\site-packages\aiohttp\streams.py", line 640, in read
    await self._waiter
aiohttp.client_exceptions.ServerDisconnectedError: Server disconnected

что делать с ошибкой

установил модуль а ошибка не пропадает
Traceback (most recent call last):
File "C:\Users\levbe\OneDrive\Документы\Blum-main\Blum-main\main.py", line 1, in
from utils.core import create_sessions
File "C:\Users\levbe\OneDrive\Документы\Blum-main\Blum-main\utils_init_.py", line 1, in
from .blum import Blum
File "C:\Users\levbe\OneDrive\Документы\Blum-main\Blum-main\utils\blum.py", line 1, in
from pyrogram.raw.functions.messages import RequestWebView
ModuleNotFoundError: No module named 'pyrogram'

проблема с api

всё правильно указал и api_id и id_hash, пробовал с разных аккаунтов, но всё ровно пишет "The api_id/api_hash combination is invalid" и дальше просит номер телефона или токен бота в тг

На процессе создания сессии зависает

image
Когда создаю новую сессию, зависает намертво и при принудительном выходе, сессия создаеться но она бесконечно проверяеться, тестировалось на python 3.10.6 и python 3.11.0

about proxy

hi.
if i run that bot with 3-4 users without proxy. can they block or ban me ?
if yes so i should user proxy for each user ?

proxies are not working, although the session has been added

20:38:57.96 | SUCCESS | Валидных сессий: 1; Невалидных: 0
The following error occurs

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client_proto.py", line 256, in data_received
    messages, upgraded, tail = self._parser.feed_data(data)
  File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadHttpMessage: 400, message:
  Expected HTTP/:

    b''
      ^

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 976, in start
    message, payload = await protocol.read()  # type: ignore[union-attr]
  File "/usr/local/lib/python3.9/site-packages/aiohttp/streams.py", line 640, in read
    await self._waiter
aiohttp.http_exceptions.HttpProcessingError: 0, message:


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/admin/blum/main.py", line 39, in <module>
    asyncio.get_event_loop().run_until_complete(main())
  File "/usr/local/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/home/admin/blum/main.py", line 36, in main
    await asyncio.gather(*tasks)
  File "/home/admin/blum/utils/blum.py", line 39, in main
    await self.login()
  File "/home/admin/blum/utils/blum.py", line 122, in login
    resp = await self.session.post("https://gateway.blum.codes/v1/auth/provider/PROVIDER_TELEGRAM_MINI_APP", json=json_data,proxy = self.proxy)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 581, in _request
    conn = await self._connector.connect(
  File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 544, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 942, in _create_connection
    _, proto = await self._create_proxy_connection(req, traces, timeout)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 1329, in _create_proxy_connection
    resp = await proxy_resp.start(conn)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 978, in start
    raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 0, message='', url=URL('socks5://Mxxx:[email protected]:8000')
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f73b8c7e730>

ERROR | 'claimBalance'

image
Can this error be ignored? I configured the proxy but I don't know if the proxy is working or not.

User Agent

When I login With multiple sessions there should be different user agents for each sessions I should be able to pick user agent for each session and add fingerprintinh too

Multi Account

How do I use multiple accounts? Is it by adding a session?

Iceberg

Привет, есть похожее приложение в тг на Blum с таким же функционалом но не такое хайповое. Iceberg называется не планировал на него еще сделать софт?

прокси

возможно ли добавить разные прокси на разные сессии?

Ошибка подключения. Дело в блюм или скрипте?

Лог ошибки
`09:12:42.08 | SUCCESS | Валидных сессий: 2; Невалидных: 0
Traceback (most recent call last):
File "C:\Users\xinos\AppData\Roaming\Python\Python311\site-packages\aiohttp\connector.py", line 1025, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\asyncio\base_events.py", line 1086, in create_connection
raise exceptions[0]
File "C:\Program Files\Python311\Lib\asyncio\base_events.py", line 1070, in create_connection
sock = await self._connect_sock(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\asyncio\base_events.py", line 974, in _connect_sock
await self.sock_connect(sock, address)
File "C:\Program Files\Python311\Lib\asyncio\proactor_events.py", line 726, in sock_connect
return await self._proactor.connect(sock, address)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\asyncio\windows_events.py", line 854, in _poll
value = callback(transferred, key, ov)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\asyncio\windows_events.py", line 641, in finish_connect
ov.getresult()
OSError: [WinError 121] Превышен таймаут семафора

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\xinos\Desktop\Blum-main\main.py", line 39, in
asyncio.get_event_loop().run_until_complete(main())
File "C:\Program Files\Python311\Lib\asyncio\base_events.py", line 654, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "C:\Users\xinos\Desktop\Blum-main\main.py", line 36, in main
await asyncio.gather(*tasks)
File "C:\Users\xinos\Desktop\Blum-main\utils\blum.py", line 39, in main
await self.login()
File "C:\Users\xinos\Desktop\Blum-main\utils\blum.py", line 122, in login
resp = await self.session.post("https://gateway.blum.codes/v1/auth/provider/PROVIDER_TELEGRAM_MINI_APP", json=json_data,proxy = self.proxy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xinos\AppData\Roaming\Python\Python311\site-packages\aiohttp\client.py", line 581, in _request
conn = await self._connector.connect(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xinos\AppData\Roaming\Python\Python311\site-packages\aiohttp\connector.py", line 544, in connect
proto = await self._create_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xinos\AppData\Roaming\Python\Python311\site-packages\aiohttp\connector.py", line 944, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xinos\AppData\Roaming\Python\Python311\site-packages\aiohttp\connector.py", line 1257, in _create_direct_connection
raise last_exc
File "C:\Users\xinos\AppData\Roaming\Python\Python311\site-packages\aiohttp\connector.py", line 1226, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xinos\AppData\Roaming\Python\Python311\site-packages\aiohttp\connector.py", line 1033, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host gateway.blum.codes:443 ssl:default [Превышен таймаут семафора]`

There is an error

i get the error 18:50:39.50 | ERROR | login | Thread 0 | qi | 'NoneType' object has no attribute 'get' 18:50:44.95 | WARNING | play | Thread 0 | qi | Token is invalid. Refreshing token... the bot works fine. I just want to ask what is the error?

Screenshot (25)

Банит Тг аккаунт

Смог запустить только на одном тг аккаунте. При попытке запуска других аккаунтов проходит несколько секунд, и аккаунт улетает в бан.

Отслеживание изменений в файле proxy.txt и config

Привет, подскажи, могу я добавлять новые прокси и менять конфиг в файлах proxy/config без остановки и перезапуска бота?
Если нет, мог бы ты реализовать эту возможность, это очень облегчит жизнь.
Gpt рекомендовал реализовать это через эту библиотеку

pip install watchdog

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.