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.