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.
- 🎁 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
[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
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
- Clone repository:
git clone https://github.com/bohd4nx/TGgifts-buyer.git
- Install requirements:
pip install -r requirements.txt
-
Configure settings:
- Open
config.ini
- Edit with your details
- Set up price ranges
- Open
-
Run:
python main.py
Currently supports:
- 🇺🇸 English
- 🇷🇺 Russian
- 🇺🇦 Ukrainian
Add new language:
- Create
locales/your_lang.py
- Add to
LANG_CODES
inconfig.py
- Set
LANGUAGE = YOUR_LANG
in config.ini
-
AttributeError: 'Client' object has no attribute 'get_star_gifts'
pip uninstall pyrogram pip install pyrofork
-
Supply limit errors:
- Check your [Ranges] configuration
- Verify supply limits are appropriate
-
Connection errors:
- Increase INTERVAL (minimum 10 seconds)
- Check internet connection
- Verify API credentials
For educational purposes only. Use responsibly and at your own risk.
MIT License - See LICENSE file