- Description
- Key Features
- Installation
- Settings
- Support and Donations
- Contacts
- Disclaimer
- Using Proxies
City Holder Bot is an automated bot for the City Holder game in Telegram. It helps manage the city, gather resources, and perform upgrades automatically.
- 🏙️ Automatic city management
- 💰 Resource collection and tap execution
- 🏗️ Automatic building upgrades
- 🔄 Support for multiple accounts
- 🌐 Proxy support
-
Download the project:
git clone https://github.com/Mffff4/cityholderbot.git cd cityholder
-
Install dependencies:
- Windows:
run.bat
- Linux:
run.sh
- Windows:
-
Get API keys:
- Go to my.telegram.org and get
API_ID
andAPI_HASH
. - Add this information to the
.env
file.
- Go to my.telegram.org and get
-
Run the bot:
python3 main.py -a 2 # Start the bot
-
Linux:
sudo sh install.sh python3 -m venv venv source venv/bin/activate pip3 install -r requirements.txt cp .env-example .env nano .env # Specify your API_ID and API_HASH python3 main.py
-
Windows:
python -m venv venv venv\Scripts\activate pip install -r requirements.txt copy .env-example .env python main.py
Setting | Default Value | Description |
---|---|---|
API_ID | Unique application identifier for Telegram API | |
API_HASH | Application hash for Telegram API | |
REF_ID | Referral ID for invitations | |
SLEEP_TIME | [1900, 2000] | Sleep time range between cycles (in seconds) |
USE_PROXY_FROM_FILE | False | Use proxy from file |
FULL_LOG_INFO | False | Enable full logging |
CYCLE_WAIT_TIME | 10 | Wait time between cycles (in minutes) |
RANDOM_DELAY | [0.5, 3.0] | Random delay range (in seconds) |
BROWSER_THREAD_TIMEOUT | [600, 1800] | Timeout for browser thread (in seconds) |
BROWSER_CREATION_TIMEOUT | [120, 300] | Timeout for browser creation (in seconds) |
MAX_RETRIES | 3 | Maximum number of attempts |
RETRY_DELAY | 5 | Delay between attempts (in seconds) |
PAGE_LOAD_DELAY | [2, 4] | Page load delay range (in seconds) |
CITY_BUTTON_CLICK_DELAY | [3, 5] | Delay range after clicking the city button (in seconds) |
BUILD_BUTTON_CLICK_DELAY | [2, 4] | Delay range after clicking the build button (in seconds) |
SCRIPT_TIMEOUT | [600, 1800] | Script execution timeout (in seconds) |
PAGE_LOAD_TIMEOUT | 30 | Page load timeout (in seconds) |
NAVIGATION_TIMEOUT | 30 | Navigation timeout (in seconds) |
SCRIPT_UPGRADE.max_execution_time | 180000 | Maximum upgrade script execution time (in milliseconds) |
SCRIPT_UPGRADE.no_change_timeout | 30000 | No change timeout (in milliseconds) |
SCRIPT_UPGRADE.click_delay | 2000 | Delay between clicks (in milliseconds) |
SCRIPT_UPGRADE.post_click_delay | 1500 | Post-click delay (in milliseconds) |
SCRIPT_UPGRADE.final_delay | 1000 | Final delay (in milliseconds) |
Support the development with cryptocurrency or platforms:
Currency | Wallet Address |
---|---|
Bitcoin (BTC) | bc1qt84nyhuzcnkh2qpva93jdqa20hp49edcl94nf6 |
Ethereum (ETH) | 0xc935e81045CAbE0B8380A284Ed93060dA212fa83 |
TON | UQBlvCgM84ijBQn0-PVP3On0fFVWds5SOHilxbe33EDQgryz |
Binance Coin (BNB) | 0xc935e81045CAbE0B8380A284Ed93060dA212fa83 |
Solana (SOL) | 3vVxkGKasJWCgoamdJiRPy6is4di72xR98CDj2UdS1BE |
Ripple (XRP) | rPJzfBcU6B8SYU5M8h36zuPcLCgRcpKNB4 |
Dogecoin (DOGE) | DST5W1c4FFzHVhruVsa2zE6jh5dznLDkmW |
Polkadot (DOT) | 1US84xhUghAhrMtw2bcZh9CXN3i7T1VJB2Gdjy9hNjR3K71 |
Litecoin (LTC) | ltc1qcg8qesg8j4wvk9m7e74pm7aanl34y7q9rutvwu |
Matic | 0xc935e81045CAbE0B8380A284Ed93060dA212fa83 |
Tron (TRX) | TQkDWCjchCLhNsGwr4YocUHEeezsB4jVo5 |
If you have any questions or suggestions:
- Telegram: Join our channel
This software is provided "as is" without any warranties of any kind. By using this bot, you accept full responsibility for its use and any consequences that may arise.
The author is not responsible for:
- Any direct or indirect damages related to the use of the bot
- Possible violations of third-party service terms of use
- Account blocking or access restrictions
Use the bot at your own risk and in compliance with applicable laws and third-party service terms of use.
-
Create a
proxies.txt
file in the project root directory -
Add proxies in any of the following formats:
socks5://login:password@127.0.0.1:1080 socks5://user:pass@192.168.1.1:8080 http://login:password@127.0.0.1:8080 http://user:pass@192.168.1.1:3128
-
In the
.env
file, set the parameter:USE_PROXY_FROM_FILE=True
Each proxy should be on a new line. Supported protocols: http, https, socks4, socks5.