Skip to content

Commit ba8b54a

Browse files
committed
📌 Initial commit
0 parents  commit ba8b54a

20 files changed

+790
-0
lines changed

.env-example

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
API_ID=
2+
API_HASH=
3+
4+
MIN_AVAILABLE_ENERGY=
5+
SLEEP_BY_MIN_ENERGY=
6+
7+
AUTO_UPGRADE_TAP=
8+
MAX_TAP_LEVEL=
9+
AUTO_UPGRADE_ENERGY=
10+
MAX_ENERGY_LEVEL=
11+
AUTO_UPGRADE_CHARGE=
12+
MAX_CHARGE_LEVEL=
13+
14+
APPLY_DAILY_ENERGY=
15+
APPLY_DAILY_TURBO=
16+
17+
RANDOM_TAPS_COUNT=
18+
SLEEP_BETWEEN_TAP=

.github/images/demo.png

61.8 KB
Loading

.gitignore

+163
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
share/python-wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
MANIFEST
28+
29+
# PyInstaller
30+
# Usually these files are written by a python script from a template
31+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
32+
*.manifest
33+
*.spec
34+
35+
# Installer logs
36+
pip-log.txt
37+
pip-delete-this-directory.txt
38+
39+
# Unit test / coverage reports
40+
htmlcov/
41+
.tox/
42+
.nox/
43+
.coverage
44+
.coverage.*
45+
.cache
46+
nosetests.xml
47+
coverage.xml
48+
*.cover
49+
*.py,cover
50+
.hypothesis/
51+
.pytest_cache/
52+
cover/
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
db.sqlite3
62+
db.sqlite3-journal
63+
64+
# DB
65+
sessions/
66+
67+
# Flask stuff:
68+
instance/
69+
.webassets-cache
70+
71+
# Scrapy stuff:
72+
.scrapy
73+
74+
# Sphinx documentation
75+
docs/_build/
76+
77+
# PyBuilder
78+
.pybuilder/
79+
target/
80+
81+
# Jupyter Notebook
82+
.ipynb_checkpoints
83+
84+
# IPython
85+
profile_default/
86+
ipython_config.py
87+
88+
# pyenv
89+
# For a library or package, you might want to ignore these files since the code is
90+
# intended to run in multiple environments; otherwise, check them in:
91+
# .python-version
92+
93+
# pipenv
94+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
95+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
96+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
97+
# install all needed dependencies.
98+
#Pipfile.lock
99+
100+
# poetry
101+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
102+
# This is especially recommended for binary packages to ensure reproducibility, and is more
103+
# commonly ignored for libraries.
104+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
105+
#poetry.lock
106+
107+
# pdm
108+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
109+
#pdm.lock
110+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
111+
# in version control.
112+
# https://pdm.fming.dev/#use-with-ide
113+
.pdm.toml
114+
115+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
116+
__pypackages__/
117+
118+
# Celery stuff
119+
celerybeat-schedule
120+
celerybeat.pid
121+
122+
# SageMath parsed files
123+
*.sage.py
124+
125+
# Environments
126+
.env
127+
.venv
128+
env/
129+
venv/
130+
ENV/
131+
env.bak/
132+
venv.bak/
133+
134+
# Spyder project settings
135+
.spyderproject
136+
.spyproject
137+
138+
# Rope project settings
139+
.ropeproject
140+
141+
# mkdocs documentation
142+
/site
143+
144+
# mypy
145+
.mypy_cache/
146+
.dmypy.json
147+
dmypy.json
148+
149+
# Pyre type checker
150+
.pyre/
151+
152+
# pytype static type analyzer
153+
.pytype/
154+
155+
# Cython debug symbols
156+
cython_debug/
157+
158+
# PyCharm
159+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
160+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
161+
# and can be added to the global gitignore or merged into this file. For a more nuclear
162+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
163+
.idea/

README-EN.md

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
[<img src="https://img.shields.io/badge/Telegram-%40Me-orange">](https://t.me/sho6ot)
2+
3+
4+
![img1](.github/images/demo.png)
5+
6+
> 🇷🇺 README на русском доступен [здесь](README.md)
7+
8+
## Functionality
9+
| Functional | Supported |
10+
|----------------------------------------------------------------|:---------:|
11+
| Multithreading ||
12+
| Binding a proxy to a session ||
13+
| Auto-purchase of items if you have coins (tap, energy, charge) ||
14+
| Random sleep time between clicks ||
15+
| Random number of clicks per request ||
16+
| Support tdata / pyrogram .session / telethon .session ||
17+
18+
## [Settings](https://github.com/shamhi/MemeFiBot/blob/main/.env-example)
19+
| Настройка | Описание |
20+
|--------------------------|----------------------------------------------------------------------------------------|
21+
| **API_ID / API_HASH** | Platform data from which to launch a Telegram session (stock - Android) |
22+
| **MIN_AVAILABLE_ENERGY** | Minimum amount of available energy, upon reaching which there will be a delay (eg 100) |
23+
| **SLEEP_BY_MIN_ENERGY** | Delay when reaching minimum energy in seconds (eg 200) |
24+
| **AUTO_UPGRADE_TAP** | Should I improve the tap (True / False) |
25+
| **MAX_TAP_LEVEL** | Maximum level of tap pumping (up to 20) |
26+
| **AUTO_UPGRADE_ENERGY** | Should I improve the tap (True / False) |
27+
| **MAX_ENERGY_LEVEL** | Maximum level of tap pumping (up to 20) |
28+
| **AUTO_UPGRADE_CHARGE** | Should I improve the tap (True / False) |
29+
| **MAX_CHARGE_LEVEL** | Maximum level of tap pumping (up to 5) |
30+
| **APPLY_DAILY_ENERGY** | Whether to use the daily free energy boost (True / False) |
31+
| **APPLY_DAILY_TURBO** | Whether to use the daily free turbo boost (True / False) |
32+
| **RANDOM_CLICKS_COUNT** | Random number of taps (eg 50,200) |
33+
| **SLEEP_BETWEEN_TAP** | Random delay between taps in seconds (eg 10.25) |
34+
35+
## Installation
36+
You can download [**Repository**](https://github.com/shamhi/MemeFiBot) by cloning it to your system and installing the necessary dependencies:
37+
```shell
38+
~ >>> git clone https://github.com/shamhi/MemeFiBot.git
39+
~ >>> cd MemeFiBot
40+
41+
# If you are using Telethon sessions, then clone the "converter" branch
42+
~ >>> git clone https://github.com/shamhi/MemeFiBot.git -b converter
43+
~ >>> cd MemeFiBot
44+
45+
#Linux
46+
~/MemeFiBot >>> python3 -m venv venv
47+
~/MemeFiBot >>> source venv/bin/activate
48+
~/MemeFiBot >>> pip3 install -r requirements.txt
49+
~/MemeFiBot >>> cp .env-example .env
50+
~/MemeFiBot >>> nano .env # Here you must specify your API_ID and API_HASH , the rest is taken by default
51+
~/MemeFiBot >>> python3 main.py
52+
53+
#Windows
54+
~/MemeFiBot >>> python -m venv venv
55+
~/MemeFiBot >>> venv\Scripts\activate
56+
~/MemeFiBot >>> pip install -r requirements.txt
57+
~/MemeFiBot >>> # Copy the contents of .env-example
58+
~/MemeFiBot >>> # Create a .env file in which you paste the copied data from .env-example and be sure to indicate your API_ID and API_HASH, the rest is taken by default
59+
~/MemeFiBot >>> python main.py
60+
```
61+
62+
Also for quick launch you can use arguments, for example:
63+
```shell
64+
~/MemeFiBot >>> python3 main.py --action (1/2)
65+
# Or
66+
~/MemeFiBot >>> python3 main.py -a (1/2)
67+
68+
#1 - Starts the session logger
69+
#2 - Launches the bot
70+
```

README.md

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
[<img src="https://img.shields.io/badge/Telegram-%40Me-orange">](https://t.me/sho6ot)
2+
3+
4+
![img1](.github/images/demo.png)
5+
6+
> 🇪🇳 README in english available [here](README-EN.md)
7+
8+
## Функционал
9+
| Функционал | Поддерживается |
10+
|----------------------------------------------------------------|:---------------:|
11+
| Многопоточность ||
12+
| Привязка прокси к сессии ||
13+
| Авто-покупка предметов при наличии монет (tap, energy, charge) ||
14+
| Рандомное время сна между кликами ||
15+
| Рандомное количество кликов за запрос ||
16+
| Поддержка tdata / pyrogram .session / telethon .session ||
17+
18+
19+
## [Настройки](https://github.com/shamhi/MemeFiBot/blob/main/.env-example)
20+
| Настройка | Описание |
21+
|--------------------------|---------------------------------------------------------------------------------------------|
22+
| **API_ID / API_HASH** | Данные платформы, с которой запускать сессию Telegram (сток - Android) |
23+
| **MIN_AVAILABLE_ENERGY** | Минимальное количество доступной энергии, при достижении которой будет задержка (напр. 100) |
24+
| **SLEEP_BY_MIN_ENERGY** | Задержка при достижении минимальной энергии в секундах (напр. 200) |
25+
| **AUTO_UPGRADE_TAP** | Улучшать ли тап (True / False) |
26+
| **MAX_TAP_LEVEL** | Максимальный уровень прокачки тапа (до 20) |
27+
| **AUTO_UPGRADE_ENERGY** | Улучшать ли энергию (True / False) |
28+
| **MAX_ENERGY_LEVEL** | Максимальный уровень прокачки энергии (до 20) |
29+
| **AUTO_UPGRADE_CHARGE** | Улучшать ли заряд энергии (True / False) |
30+
| **MAX_CHARGE_LEVEL** | Максимальный уровень прокачки заряда энергии (до 5) |
31+
| **APPLY_DAILY_ENERGY** | Использовать ли ежедневный бесплатный буст энергии (True / False) |
32+
| **APPLY_DAILY_TURBO** | Использовать ли ежедневный бесплатный буст турбо (True / False) |
33+
| **RANDOM_CLICKS_COUNT** | Рандомное количество тапов (напр. 50,200) |
34+
| **SLEEP_BETWEEN_TAP** | Рандомная задержка между тапами в секундах (напр. 10,25) |
35+
36+
37+
## Установка
38+
Вы можете скачать [**Репозиторий**](https://github.com/shamhi/MemeFiBot) клонированием на вашу систему и установкой необходимых зависимостей:
39+
```shell
40+
~ >>> git clone https://github.com/shamhi/MemeFiBot.git
41+
~ >>> cd MemeFiBot
42+
43+
# Если вы используете Telethon сессии, то клонируйте ветку "converter"
44+
~ >>> git clone https://github.com/shamhi/MemeFiBot.git -b converter
45+
~ >>> cd MemeFiBot
46+
47+
# Linux
48+
~/MemeFiBot >>> python3 -m venv venv
49+
~/MemeFiBot >>> source venv/bin/activate
50+
~/MemeFiBot >>> pip3 install -r requirements.txt
51+
~/MemeFiBot >>> cp .env-example .env
52+
~/MemeFiBot >>> nano .env # Здесь вы обязательно должны указать ваши API_ID и API_HASH , остальное берется по умолчанию
53+
~/MemeFiBot >>> python3 main.py
54+
55+
# Windows
56+
~/MemeFiBot >>> python -m venv venv
57+
~/MemeFiBot >>> venv\Scripts\activate
58+
~/MemeFiBot >>> pip install -r requirements.txt
59+
~/MemeFiBot >>> # Копируете содержимое .env-example
60+
~/MemeFiBot >>> # Создаете файл .env, в котором вставляете скопированные данные из .env-example и обязательно указываете ваши API_ID и API_HASH, остальное берется по умолчанию
61+
~/MemeFiBot >>> python main.py
62+
```
63+
64+
Также для быстрого запуска вы можете использовать аргументы, например:
65+
```shell
66+
~/MemeFiBot >>> python3 main.py --action (1/2)
67+
# Или
68+
~/MemeFiBot >>> python3 main.py -a (1/2)
69+
70+
# 1 - Запускает регистратор сессии
71+
# 2 - Запускает бота
72+
```

bot/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '1.0'

bot/config/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .config import settings

bot/config/config.py

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
from pydantic_settings import BaseSettings, SettingsConfigDict
2+
3+
4+
class Settings(BaseSettings):
5+
model_config = SettingsConfigDict(env_file=".env", env_ignore_empty=True)
6+
7+
API_ID: int
8+
API_HASH: str
9+
10+
MIN_AVAILABLE_ENERGY: int = 100
11+
SLEEP_BY_MIN_ENERGY: int = 200
12+
13+
AUTO_UPGRADE_TAP: bool = True
14+
MAX_TAP_LEVEL: int = 5
15+
AUTO_UPGRADE_ENERGY: bool = True
16+
MAX_ENERGY_LEVEL: int = 5
17+
AUTO_UPGRADE_CHARGE: bool = True
18+
MAX_CHARGE_LEVEL: int = 5
19+
20+
APPLY_DAILY_ENERGY: bool = True
21+
APPLY_DAILY_TURBO: bool = True
22+
23+
RANDOM_TAPS_COUNT: list[int] = [50, 200]
24+
SLEEP_BETWEEN_TAP: list[int] = [15, 25]
25+
26+
27+
settings = Settings()

bot/core/__init__.py

Whitespace-only changes.

bot/core/headers.py

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
headers = {
2+
'Accept': 'application/json',
3+
'Accept-Language': 'ru-RU,ru;q=0.9',
4+
'Content-Type': 'application/json',
5+
'Origin': 'https://tg-app.memefi.club',
6+
'Referer': 'https://tg-app.memefi.club/',
7+
'Sec-Ch-Ua': '"Google Chrome";v="123", "Not:A-Brand";v="8", "Chromium";v="123"',
8+
'Sec-Ch-Ua-mobile': '?1',
9+
'Sec-Ch-Ua-platform': '"Android"',
10+
'Sec-Fetch-Dest': 'empty',
11+
'Sec-Fetch-Mode': 'cors',
12+
'Sec-Fetch-Site': 'same-site',
13+
'User-Agent': 'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Mobile Safari/537.36',
14+
}

0 commit comments

Comments
 (0)