A powerful Telegram bot that automatically accepts join requests for private channels and groups with advanced management features.
Features • Installation • Configuration • Usage • Deployment
Auto-Request-Accept-Bot is a Telegram bot designed to streamline channel management by automatically accepting join requests for your private channels and groups. It provides a comprehensive admin dashboard with broadcast capabilities, user management, and detailed logging.
The bot works seamlessly with both private channels and public groups, offering 24/7 automatic request handling while giving you full control through an intuitive interface.
- 🤖 Automatic Join Request Acceptance - Instantly approve all join requests for your channels
- 👥 Multi-Channel Support - Works with unlimited private and public channels
- 📊 User Database - MongoDB integration to track all users who join your channels
- 🔐 24/7 Monitoring - Continuous operation without manual intervention
- 📢 Broadcast System - Send messages to all users with one click
- Visual confirmation before broadcasting
- Automatic deletion of broadcast messages after set time
- 👤 User Management - View detailed user information and send individual messages
- 📋 Activity Logging - Comprehensive logs of all bot activities
- 🎯 Permission Management - Control chat permissions for new members
start - to start this bot | add to group
report - /report <Message>
login - login with telegram account
logout - logout and clear session from db
accept_on - automatic request accept user
accept_off - automatic user request accept off
accept - to accept pending request of a chat
users - to see users list [OWNER]
sendmessage - /sendmessage <User ID> <Message> [OWNER]
broadcast - to send broadcast to all users [owner]
- Python 3.8 or higher
- Telegram Bot Token (BotFather)
- Telegram API credentials (my.telegram.org)
- MongoDB database (MongoDB Cloud)
- Clone the Repository
git clone https://github.com/OnlyNoco/Auto-Request-Accept-Bot.git
cd Auto-Request-Accept-Bot- Install Dependencies
pip install -r requirements.txt- Configure the Bot
cp sample_config.py config.py
# Edit config.py with your credentials- Run the Bot
python main.pyCreate a config.py file based on sample_config.py with the following variables:
| Variable | Type | Description |
|---|---|---|
BOT_TOKEN |
string | Your Telegram bot token from BotFather |
API_ID |
integer | Telegram API ID from my.telegram.org |
API_HASH |
string | Telegram API Hash from my.telegram.org |
OWNER_ID |
integer | Your Telegram user ID (admin) |
DB_URL |
string | MongoDB connection URL |
DB_NAME |
string | MongoDB database name |
PORT |
integer | Port for the web server (default: 8080) |
WORKER |
integer | Number of worker threads (default: 4) |
FLOOD_WAIT |
integer | Delay between messages in seconds (default: 10) |
BROADCAST_DELETE_TIME |
integer | Auto-delete broadcast after X seconds (default: 1800) |
- START_MSG - Welcome message when users interact with the bot
- ABOUT_MSG - Bot information and credits
- CMD_MSG - Help message listing available commands
- START_PIC - Media URLs for displaying in the start message
BOT_TOKEN = "your_bot_token_here"
API_ID = 26254064
API_HASH = "your_api_hash_here"
OWNER_ID = 5296584067
DB_URL = "mongodb+srv://username:password@cluster.mongodb.net"
DB_NAME = "JOINREQ"
PORT = 8080
WORKER = 4-
Add Bot to Channel
- Open your private channel
- Add the bot as an administrator
- Grant required permissions (accept join requests)
-
Monitor Requests
- Bot automatically accepts all join requests
- Owner receives notifications for each new member
-
Send Broadcasts
- Send any message to the bot in private chat
- Click the confirmation button to broadcast to all users
- Message auto-deletes after configured time
-
Manage Users
- View all users in the database
- Send individual messages to specific users
- Track user activity
- Use
/startto check bot status - Use
/helpfor command information - Use
/reportto contact administrators
Auto-Request-Accept-Bot/
├── main.py # Entry point
├── bot.py # Bot class and core configuration
├── config.py # Configuration (create from sample_config.py)
├── sample_config.py # Configuration template
├── requirements.txt # Python dependencies
├── Dockerfile # Docker configuration
├── Procfile # Deployment configuration
├── LICENSE # MIT License
├── README.md # This file
│
├── database/
│ └── database.py # MongoDB operations
│
└── plugins/
├── __init__.py
├── auto_accept.py # Auto-accept join requests
├── broadcast.py # Broadcast functionality
├── users.py # User management
├── report.py # Report handling
├── route.py # Web routing
├── start.py # Start command handler
- Pyrofork - Advanced Telegram client library
- Python 3.8+ - Core language
- MongoDB - User database
- aiohttp - Async HTTP client
- TgCrypto - Fast encryption for Pyrogram
- PyroMod - Pyrogram extension
docker build -t auto-request-bot .
docker run -e BOT_TOKEN="your_token" -e API_ID="your_id" ... auto-request-bot- Create a
Procfile(already included) - Set environment variables on Heroku
- Deploy using Heroku CLI:
heroku create your-app-name
heroku config:set BOT_TOKEN="your_token" API_ID="your_id" ...
git push heroku main- Push your code to GitHub
- Click the deploy button above
- Set environment variables:
BOT_TOKENAPI_IDAPI_HASHOWNER_IDDB_URLDB_NAME
- Click "Deploy"
- Click the deploy button above
- Connect your GitHub account
- Configure environment variables:
BOT_TOKEN- Your Telegram bot tokenAPI_ID- Telegram API IDAPI_HASH- Telegram API HashOWNER_ID- Your Telegram user IDDB_URL- MongoDB connection stringDB_NAME- Database name
- Click "Deploy" and wait for deployment to complete
See requirements.txt for full list of dependencies:
- pyrofork
- aiohttp
- pymongo
- dnspython
- TgCrypto-pyrofork
- pyromod
- Verify
BOT_TOKENis correct - Check internet connection
- Ensure bot is running:
python main.py
- Confirm bot has admin permissions in channel
- Verify "accept join request" permission is enabled
- Check logs for error messages
- Verify
DB_URLis correct - Check MongoDB cluster IP whitelist
- Ensure network connectivity
- Increase
FLOOD_WAITvalue in config - Reduce broadcast message frequency
- Optimize database queries
Contributions are welcome! Feel free to:
- Report bugs via
/reportcommand - Suggest new features
- Submit pull requests
- Improve documentation
This project is licensed under the MIT License - see the LICENSE file for details.
OnlyNoco
- Hentai Crisp - HAnime channel
- Battle Through the Heavens - Check this masterpiece
For issues, questions, or suggestions:
- Use the
/reportcommand in the bot - Contact @OnlyNoco on Telegram
- Open an issue on GitHub
Made with ❤️ by OnlyNoco
SUGGEST ME!