Telegram bot to auto approve chat join requests.
- Go version 1.23.0 or later
- MongoDB Database Url
- Telegram Bot Token from BotFather
Follow the instructions to install Go on your system: Go Installation Guide
Easy Way:
git clone https://github.com/udhos/update-golang dlgo && cd dlgo && sudo ./update-golang.sh && source /etc/profile.d/golang_path.sh
Exit the terminal and open the terminal to check the installation.
Verify the installation by running:
go version
git clone https://github.com/AshokShau/Auto-Approve-Bot.git ApproveBot && cd ApproveBo
Copy the sample environment file and edit it as needed:
cp sample.env .env
vi .env
go build
sudo ./Auto-Approve-Bot
-
Deploy the bot on Vercel with the following steps:
-
Fork this repository 🍴
-
Login your Vercel account
-
Go to your Add New Project
-
Choose the repository you forked
-
Configure the environment variables:
DB_URI
MongoDB -
Tap on Deploy
-
After deployment, visit the deployed URL & Connect your bot with the deployed URL.
-
Start the bot by sending
/start
command to the bot. -
Congratulations 🎉 Enjoy the bot 🌟 if you have any questions, join the support Channel 🤗
- Start the bot: Start the bot by sending
/start
command to the bot. - Add the bot to your group: Add the bot to your group and make it an admin with permission to approve new members.
Note: The bot must be an admin with Invite Users permission to approve new members to auto-approve new members.
/start
: Start the bot./ping
: Check if the bot is running./autoApprove
: Enable/Disable auto-approve mode (Admin Only)./stats
: Get the bot's statistics (Bot Owner Only)./broadcast
: Broadcast a message to all users (Bot Owner Only).
Contributing Guidelines
Contributions are welcome! Follow these steps to contribute:
-
Fork the repository: Click the "Fork" button at the top right of this page to create a copy of this repository in your GitHub account.
-
Clone the repository: Clone your forked repository to your local machine.
git clone https://github.com/your-username/Auto-Approve-Bot.git cd Auto-Approve-Bot
-
Create a branch: Create a new branch for your changes.
git checkout -b feature-branch
-
Make your changes: Make your changes to the codebase.
-
Commit your changes: Commit your changes with a descriptive commit message.
git add . git commit -m "Description of your changes"
-
Push to your branch: Push your changes to your forked repository.
git push origin feature-branch
-
Submit a pull request: Go to the original repository on GitHub and create a pull request from your forked repository.
Please ensure your code follows the project's coding standards and includes appropriate tests.
Thank you for contributing!
This project is licensed under the MIT License—see the LICENSE file for details.