Skip to content

Gifts Auto-Buyer is a user-bot that automatically sends gifts to users on Telegram.

License

Notifications You must be signed in to change notification settings

bohd4nx/TGgifts-buyer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Gifts Auto-Buyer

Preview

Python Version License Stars
Developer Channel

English | Русский

📝 Overview

An advanced Telegram userbot for automated gift sending with dynamic price ranges and supply management. Supports both limited and non-limited gifts with configurable sending rules.

✨ Features

  • 🎁 Dynamic gift quantity based on price ranges
  • 📊 Supply limit monitoring
  • 🌐 Multi-language support (EN/RU/UK)
  • ⚡️ Automatic gift detection
  • 🔄 Configurable delays and intervals
  • 📱 Multiple recipient support
  • 🎯 Price-based filtering

⚙️ Configuration

Basic Setup (config.ini)

[Telegram]
API_ID = your_api_id  # Your Telegram API ID
API_HASH = your_api_hash  # Your Telegram API Hash
CHANNEL_ID = your_channel_id  # The ID of the channel to monitor

[Bot]
INTERVAL = 10  # Interval between checks in seconds
TIMEZONE = Europe/Moscow  # Timezone for scheduling
LANGUAGE = EN  # Language for bot messages (EN/RU/UK)

[Gifts]
MAX_GIFT_PRICE = 10000  # Maximum price of gifts to consider
GIFT_DELAY = 5  # Delay between sending gifts in seconds
USER_ID = user1_id, username  # User IDs or usernames to send gifts to
HIDE_SENDER_NAME = True  # Whether to hide the sender's name
PURCHASE_NON_LIMITED_GIFTS = False  # Whether to purchase non-limited gifts

Price Range Configuration

The bot uses a sophisticated price range system to determine gift quantities:

[Ranges]
0,999,10000 = 1      # Price 0-999, supply limit 10000, send 1 gift
1000,1999,100 = 2  # Price 1000-1999, supply limit 100, send 2 gifts
2000,2999,1000 = 3  # Price 2000-2999, supply limit 1000, send 3 gifts

Format: min_price,max_price,supply_limit = quantity

🚀 Installation

  1. Clone repository:
git clone https://github.com/bohd4nx/TGgifts-buyer.git
  1. Install requirements:
pip install -r requirements.txt
  1. Configure settings:

    • Open config.ini
    • Edit with your details
    • Set up price ranges
  2. Run:

python main.py

🌍 Localization

Currently supports:

  • 🇺🇸 English
  • 🇷🇺 Russian
  • 🇺🇦 Ukrainian

Add new language:

  1. Create locales/your_lang.py
  2. Add to LANG_CODES in config.py
  3. Set LANGUAGE = YOUR_LANG in config.ini

🔧 Troubleshooting

Common Issues

  1. AttributeError: 'Client' object has no attribute 'get_star_gifts'

    pip uninstall pyrogram
    pip install pyrofork
  2. Supply limit errors:

    • Check your [Ranges] configuration
    • Verify supply limits are appropriate
  3. Connection errors:

    • Increase INTERVAL (minimum 10 seconds)
    • Check internet connection
    • Verify API credentials

⚠️ Disclaimer

For educational purposes only. Use responsibly and at your own risk.

📄 License

MIT License - See LICENSE file

About

Gifts Auto-Buyer is a user-bot that automatically sends gifts to users on Telegram.

Topics

Resources

License

Stars

Watchers

Forks

Languages