Modern Telegram bot for automated trading with cryptocurrency payments support and multi-level referral system.
- π€ Modern Architecture - built on aiogram 3.20.0
- π° Crypto Payments - USDT support (BEP-20, Polygon, ERC-20)
- π Multi-language - Russian and English languages
- π₯ Referral System - 3 levels with customizable percentages
- π« Promo Code System - flexible discounts and bonuses
- π Admin Panel - complete bot management
- π Automation - task scheduler and auto-backups
- π± Adaptive Interface - beautiful inline keyboards
- Python 3.12+
- SQLite3
- Telegram Bot Token
- Clone the repository:
git clone https://github.com/yourusername/AutoCryptoShop.git
cd AutoCryptoShop- Install dependencies:
pip install -r requirements.txt- Configure settings:
Edit the
settings.inifile:
[settings]
BOT_TOKEN = your_bot_token_here
ADMINS = your_admin_id_here
SUPPORT_USER = @your_support_username
CHAT_ID = your_chat_id- Run the bot:
python main.py
# or for Windows
start.bat[settings]
BOT_TOKEN = 1234567890:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
ADMINS = 123456789,987654321
SUPPORT_USER = @support_username
CHAT_ID = -1001234567890
CHANNEL_URL = https://t.me/yourchannel
FAQ = Frequently Asked Questions
NEWS = News and Updates
[database]
DATABASE_PATH = data/database.db
[crypto]
USDT_BEP20_ADDRESS = your_bep20_address
USDT_POLYGON_ADDRESS = your_polygon_address
USDT_ERC20_ADDRESS = your_erc20_address
[referral]
LEVEL1_PERCENT = 10
LEVEL2_PERCENT = 5
LEVEL3_PERCENT = 2AutoCryptoShop/
βββ tgbot/
β βββ data/ # Configuration and loaders
β βββ filters/ # Handler filters
β βββ handlers/ # Command and message handlers
β βββ keyboards/ # Inline and reply keyboards
β βββ middlewares/ # Middleware
β βββ services/ # Services (DB, payments)
β βββ utils/ # Utilities and helper functions
βββ data/ # Database
βββ main.py # Entry point
βββ settings.ini # Configuration
βββ requirements.txt # Dependencies
The bot uses SQLite with automatic creation of the following tables:
- users - users and their data
- settings - bot settings
- payment_systems - payment systems
- categories - product categories
- subcategories - subcategories
- items - products
- goods - specific product items
- promocodes - promo codes
- purchases - purchases
- transactions - transactions
- ποΈ Browse product catalog
- π³ Purchase via cryptocurrencies
- π Use promo codes
- π₯ Referral program
- π Personal statistics
- π Language switching
- π Manage products and categories
- π° Configure payment systems
- π€ User management
- π« Create promo codes
- π Statistics and analytics
- π’ Message broadcasting
- βοΈ General bot settings
- β Spam protection via middleware
- β Channel subscription verification
- β Input data validation
- β All operations logging
- β Automatic DB backups
The bot includes a logging system with color indication:
- π’ INFO - normal operations
- π‘ WARNING - warnings
- π΄ ERROR - errors
- π£ DEBUG - debug information
Built-in task scheduler (APScheduler):
- Daily statistics updates
- Weekly reports
- Automatic database backups
- Cleanup of outdated data
Supported languages:
- π·πΊ Russian (default)
- πΊπΈ English
Adding a new language:
- Create a file in
tgbot/data/locales/ - Translate all keys from the base language
- Update the language list in settings
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License. See the LICENSE file for details.
- π§ Email: support@example.com
- π¬ Telegram: @support_username
- π Issues: GitHub Issues
β If this project was helpful, please give it a star!
Developed with β€οΈ for trading automation


