perfect bot contact me on telegram @blockchainDeveloper_Ben
- Support for multiple Telegram accounts
- Session management for persistent logins
- Easy account switching and management
- Distributed message sending across accounts to avoid rate limits
- Scrape members from Telegram groups
- Filters out bots and users without usernames
- Collects detailed user information:
- Username
- User ID
- First/Last Name
- Phone (if available)
- Account status (verified, premium, etc.)
- Saves data to CSV for future use
- Individual Messages: Each target receives one personalized message
- Message Customization:
- SpinTax support for message variations
- Media attachment support (images, videos, etc.)
- Smart Delays:
- Configurable intervals between messages (e.g., 60-80 seconds)
- Random delay generation to appear more natural
- Distribution:
- Messages split among multiple accounts
- Parallel sending for efficiency
- Send messages directly to groups
- Automatic group joining if needed
- Configurable delays between group messages
- Support for media attachments
yaml Example: "{Hello|Hi|Hey} {there|friend}!" Generates variations like: "Hello there!" "Hi friend!" "Hey there!"
- Creates unique message variations for each recipient
- Reduces spam detection
- Makes messages appear more natural
- Images
- Videos
- Audio files
- Documents
- Tracks all message attempts
- Records success/failure status
- Maintains member database
- Allows for campaign resumption
- Live progress updates
- Error reporting
- Success confirmations
- Smart delays between messages
- Account rotation
- Flood control protection
- Automatic retry system
- Error logging
- Session persistence
api_id: YOUR_API_ID api_hash: "YOUR_API_HASH" splay: 7 # Base delay messages: template_one: | {Hello|Hi} {there|friend}! raid: CHANNEL_NAME: message_type: template_one wait_interval: 300
members.csv
: Scraped member databasegroups.csv
: Target groups listsettings.yml
: Bot configurationsessions/
: Telegram session files
-
Setup
- Configure API credentials
- Add Telegram accounts
- Set message templates
-
Member Collection
- Scrape from groups
- Import from CSV
- Filter and verify members
-
Message Configuration
- Create message template
- Set up SpinTax variations
- Attach media (optional)
- Configure sending intervals
-
Distribution
- Select target members
- Choose sending method
- Start distribution
- Monitor progress
-
Tracking
- View live logs
- Check CSV for status
- Handle any errors
- Resume incomplete campaigns
-
Account Protection
- Use reasonable delays
- Rotate between accounts
- Monitor for warnings
-
Best Practices
- Start with small batches
- Use message variations
- Maintain natural sending patterns
- Regular session management
- Telegram API restrictions
- Rate limiting considerations
- Account safety measures
- Platform-specific constraints
- Error logging system
- CSV export for troubleshooting
- Session management tools
A Telegram bot for sending direct messages.
- Python 3.8 or higher
- Virtual environment (recommended)
The following files must be included for the bot to work:
launch.py
- Main entry pointtg_shill_bot.py
- Core bot functionalityspintax.py
- Message templatingsettings.yml
- Bot configurationrequirements.txt
- Python dependencies
-
Clone this repository with all required files
-
Create and activate a virtual environment:
# Windows python -m venv .venv .venv\Scripts\activate # Linux/Mac python -m venv .venv source .venv/bin/activate
-
Install required packages:
pip install -r requirements.txt
- Configure your settings in
settings.yml
- Run the bot:
python launch.py
To create a single-file executable with no console window:
-
Install PyInstaller:
pip install pyinstaller
-
Build the executable:
# Windows pyinstaller telegram_dm_bot.spec --clean --noconfirm # Linux/Mac pyinstaller telegram_dm_bot.spec --clean --noconfirm
The executable will be created in the dist
folder. You can distribute this single file to run the bot on any compatible system without requiring Python installation.
Note: Make sure all required files (launch.py
, tg_shill_bot.py
, spintax.py
, settings.yml
) are included in the same directory as the executable.
pyinstaller telegram_dm_bot.spec --clean