- Download the
TelegramBotManager_Portablefolder - Extract to your desired location (e.g.,
C:\TelegramBot\) - Open the
.envfile in a text editor - Configure your Telegram API credentials:
API_ID=your_api_id_here
API_HASH=your_api_hash_here
PHONE=+1234567890
- Visit https://my.telegram.org
- Log in with your phone number
- Go to "API development tools"
- Create a new application
- Copy your API_ID and API_HASH
- Double-click
TelegramBotManager.exe - OR run
start.batfor easier launching - The desktop application will open with 5 main tabs
Start/Stop Your Bot
- Green Status: Bot is running and connected
- Red Status: Bot is stopped
- Orange Status: Bot is starting/connecting
Statistics Dashboard
- Total responses configured
- Messages processed today
- Media files available
- Configuration validation status
Quick Actions
- Start Bot: Connect to Telegram and begin responding
- Stop Bot: Disconnect and stop all bot activities
Manage Bot Responses
- View All Responses: See keywords, types, and content previews
- Add New Response: Create text, image, or audio responses
- Edit Response: Modify existing bot responses
- Delete Response: Remove unwanted responses
Response Types Supported
- Text: Multiple text responses (bot picks randomly)
- Image: Send image files with optional captions
- Audio: Send audio files as voice messages
Creating Responses
- Click "β Add Response"
- Enter trigger keyword (what users type)
- Select response type
- Configure content:
- Text: Enter multiple lines for variety
- Image: Select from uploaded images + add caption
- Audio: Select from uploaded audio files
Upload & Manage Media
- Upload Images: JPG, PNG, GIF, BMP files
- Upload Audio: MP3, WAV, OGG, M4A files
- View File Details: Filename, type, and size
- Delete Files: Remove unused media
File Management Tips
- Upload images first, then create image responses
- Keep file sizes reasonable (<5MB for images, <10MB for audio)
- Use descriptive filenames for easy identification
Real-Time Message Monitoring
- Incoming Messages: Blue text shows messages received
- Outgoing Responses: Green text shows bot replies
- System Events: Red text shows errors and status updates
- Timestamps: Gray text shows when messages occurred
Message Log Features
- Auto-scroll: Automatically scroll to newest messages
- Clear Log: Remove all messages from display
- Save Log: Export conversation history to text file
- Search & Filter: Find specific messages or events
API Configuration
- Edit your Telegram credentials
- Test connection status
- Update phone number if needed
Application Settings
- Auto-start Bot: Automatically start bot when app opens
- Minimize to Tray: Hide app in system tray instead of taskbar
- Message Notifications: Show popup notifications for new messages
System Tray Integration
- Right-click tray icon for quick actions
- Start/stop bot from tray menu
- Show/hide main window
- Exit application
The application automatically logs all bot activities:
- Incoming user messages: What people send to your bot
- Outgoing bot responses: How your bot replies
- System events: Start/stop, errors, configuration changes
- Unknown messages: Messages that didn't match any response
Your bot includes intelligent message matching:
- Exact matches: Direct keyword matching
- Wildcard matching: Use
*in keywords (e.g.,hello*matches "hello", "hello there") - Fuzzy matching: Handles typos and similar phrases
- Hinglish support: Understands mixed Hindi-English messages
Text Responses
{
"hello": {
"type": "text",
"content": ["Hi there!", "Hello! How can I help?", "Hey!"]
}
}Image Responses
{
"show photo": {
"type": "image",
"content": "my_image.jpg",
"caption": "Here's the photo you requested!"
}
}Audio Responses
{
"play music": {
"type": "audio",
"content": "song.mp3"
}
}Check Configuration
- Verify API_ID and API_HASH in
.envfile - Ensure phone number includes country code (+1234567890)
- Test internet connection
- Check Windows firewall settings
Common Solutions
- Restart the application
- Re-enter API credentials
- Check Telegram app on your phone for verification codes
Response Issues
- Check that bot status shows "Running" (green)
- Verify responses.json has valid entries
- Test with simple text responses first
- Check Live Messages tab for error details
Media Not Sending
- Verify media files exist in
media/images/ormedia/audio/folders - Check file formats are supported
- Ensure file sizes are reasonable (<5MB images, <10MB audio)
If tray integration fails
- Disable "Minimize to tray" in Settings
- Check Windows notification area settings
- Some antivirus software blocks tray access
If application is slow
- Clear message log regularly
- Remove unused media files
- Limit number of responses to reasonable amount
- Close other resource-intensive applications
TelegramBotManager_Portable/
βββ TelegramBotManager.exe # Main application executable
βββ .env # Your API configuration (KEEP PRIVATE!)
βββ responses.json # Bot responses database
βββ conversation.json # Message history log
βββ bot.log # Technical error log
βββ start.bat # Easy launcher script
βββ README.txt # Quick reference guide
βββ media/
βββ images/ # Image files for image responses
βββ audio/ # Audio files for audio responses
- Never share your
.envfile - Don't commit credentials to version control
- Use strong unique API hash
- Rotate credentials if compromised
- All messages are logged locally only
- No data is sent to external servers (except Telegram API)
- Media files stored locally on your computer
- Configuration files remain on your device
- Check Live Messages tab for real-time error details
- Review bot.log file for technical error information
- Verify configuration in Settings tab
- Test with simple responses before complex setups
- "API_ID not configured": Missing or invalid API credentials
- "Phone number verification needed": Check Telegram app for code
- "File not found": Media file missing or moved
- "Invalid response format": Check responses.json syntax
- Start simple: Begin with text responses before adding media
- Test thoroughly: Verify each response works before adding more
- Regular backups: Keep copies of your responses.json file
- Monitor actively: Use Live Messages tab to watch bot performance
- Use specific keywords rather than generic ones
- Create response variations for more natural conversations
- Organize media files with descriptive names
- Monitor message patterns to improve responses
- Use wildcards for flexible matching:
help*matches "help", "help me", "help please" - Create contextual responses based on user sentiment
- Combine text and media responses for rich interactions
- Use conversation.json to analyze popular requests
- Set up auto-start for always-on bot operation
- Use system tray for invisible background operation
- Create scheduled responses (requires custom scripting)
- Integration with other Windows applications
This guide covers the complete functionality of Telegram Bot Manager v2.0. For additional support, refer to the in-app help sections and log files.