Telegram bot for creating Webshare proxy accounts β automated captcha solving, proxy pool, and admin panel.
β¨ Features
- π One-click account creation β auto generates email, solves captcha, registers on Webshare
- π§© Multi-provider captcha β AZCaptcha & 2Captcha support, switchable via admin panel
- π Proxy pool β admin-created proxies used for routing registrations, with health checking
- π‘οΈ Admin panel β stats, user management, broadcast, ban/unban, proxy settings
- β± Rate limiting β 1 registration per user per day (admin unlimited)
- π Proxy fetching β retrieve saved proxies from your accounts anytime
- πΎ SQLite β zero-dependency local storage with WAL mode
π Architecture
config.toml β credentials & settings (gitignored)
config.py β loads config.toml into constants
database.py β SQLite layer (users, registrations, proxies, settings)
bot.py β entry point, registers handlers
handlers/
start.py β /start, main menu dispatcher
register.py β auto + manual registration flows
admin.py β admin panel (stats, broadcast, users, proxy, captcha)
proxies.py β fetch proxies from saved accounts
services/
scraper.py β cloudscraper wrapper with proxy support
captcha.py β multi-provider captcha solver
webshare.py β Webshare API (register + fetch proxies)
email_gen.py β nullz email generation
proxy_checker.py β proxy health checking + pool management
ui/
keyboards.py β all inline keyboard builders
messages.py β message templates
utils/
rate_limit.py β daily rate limit checker
validators.py β email/password validation
π Quick Start
# 1. Clone
git clone https://github.com/hirotomasato/pelerproxy.git
cd pelerproxy
# 2. Virtual environment
python -m venv venv
source venv/bin/activate # Linux/Mac
venv\Scripts\activate # Windows
# 3. Install dependencies
pip install -r requirements.txt
# 4. Configure
cp config.example.toml config.toml
# Edit config.toml with your bot token and admin IDs
# 5. Run
python bot.py
βοΈ Configuration
Edit config.toml after copying from config.example.toml:
| Section | Key | Description |
|---|---|---|
[bot] |
token |
Telegram bot token from @BotFather |
[admin] |
ids |
List of admin Telegram user IDs |
[captcha.azcaptcha] |
api_key |
AZCaptcha API key (or set via admin panel) |
[captcha.2captcha] |
api_key |
2Captcha API key |
[captcha] |
default_provider |
"azcaptcha" or "2captcha" |
[limits] |
max_registrations_per_day |
Daily limit per user (default: 1) |
π€ Commands
User
| Command | Description |
|---|---|
/start |
Show main menu |
π Create Account (Auto) |
Auto-generate email, solve captcha, register |
βοΈ Register with Your Email |
Manual registration with your own email |
π Get My Proxies |
Fetch proxies from your last account |
Admin
| Command | Description |
|---|---|
π‘οΈ Admin Panel |
Access admin dashboard |
π Statistics |
View user/proxy stats |
π§© Captcha Settings |
Switch provider, set API key |
π Proxy Settings |
Toggle proxy mode, check/clean pool |
π₯ List Users |
Paginated user list with details |
π’ Broadcast |
Send message to all users |
π¨ Ban / Unban |
Manage user bans |
π Reset Limit |
Reset daily limit for a user |
π License
MIT β see LICENSE for details.
Comments