Skip to content

MrPRoa/Auto_Crypto_Shop_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›’ AutoCryptoShop - Telegram Bot

image

image

image

Modern Telegram bot for automated trading with cryptocurrency payments support and multi-level referral system.

✨ Features

  • πŸ€– 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

πŸš€ Quick Start

Requirements

  • Python 3.12+
  • SQLite3
  • Telegram Bot Token

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/AutoCryptoShop.git
cd AutoCryptoShop
  1. Install dependencies:
pip install -r requirements.txt
  1. Configure settings: Edit the settings.ini file:
[settings]
BOT_TOKEN = your_bot_token_here
ADMINS = your_admin_id_here
SUPPORT_USER = @your_support_username
CHAT_ID = your_chat_id
  1. Run the bot:
python main.py
# or for Windows
start.bat

πŸ“‹ Configuration

settings.ini

[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 = 2

πŸ—οΈ Architecture

AutoCryptoShop/
β”œβ”€β”€ 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

πŸ’Ύ Database

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

πŸ”§ Functionality

For Users:

  • πŸ›οΈ Browse product catalog
  • πŸ’³ Purchase via cryptocurrencies
  • 🎁 Use promo codes
  • πŸ‘₯ Referral program
  • πŸ“Š Personal statistics
  • 🌐 Language switching

For Administrators:

  • πŸ“ Manage products and categories
  • πŸ’° Configure payment systems
  • πŸ‘€ User management
  • 🎫 Create promo codes
  • πŸ“Š Statistics and analytics
  • πŸ“’ Message broadcasting
  • βš™οΈ General bot settings

πŸ›‘οΈ Security

  • βœ… Spam protection via middleware
  • βœ… Channel subscription verification
  • βœ… Input data validation
  • βœ… All operations logging
  • βœ… Automatic DB backups

πŸ“ˆ Monitoring

The bot includes a logging system with color indication:

  • 🟒 INFO - normal operations
  • 🟑 WARNING - warnings
  • πŸ”΄ ERROR - errors
  • 🟣 DEBUG - debug information

πŸ”„ Automation

Built-in task scheduler (APScheduler):

  • Daily statistics updates
  • Weekly reports
  • Automatic database backups
  • Cleanup of outdated data

🌍 Multi-language Support

Supported languages:

  • πŸ‡·πŸ‡Ί Russian (default)
  • πŸ‡ΊπŸ‡Έ English

Adding a new language:

  1. Create a file in tgbot/data/locales/
  2. Translate all keys from the base language
  3. Update the language list in settings

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“ License

This project is licensed under the MIT License. See the LICENSE file for details.

πŸ“ž Support

πŸ“Š Project Status

Python Version aiogram Version License Status


⭐ If this project was helpful, please give it a star!

Developed with ❀️ for trading automation

About

Modern Telegram bot for automated trading with cryptocurrency payments support and multi-level referral system.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages