Join Group Message Remover Bot is a Telegram bot designed to automatically remove join and leave messages in group chats. This bot helps keep your group chat clean and free from clutter by deleting these notifications.
- Automatically deletes join and leave messages in group chats.
- Sends a welcome message when added to a group, requesting admin permissions.
- Provides a status command to check if the bot is running and has the necessary permissions.
- Inline keyboard button to easily add the bot to new groups.
- Node.js (v14 or higher)
- Telegram Bot Token (You can get this by creating a bot on BotFather)
-
Clone the repository:
git clone https://github.com/yourusername/joingroupmassageremovetg.git cd joingroupmassageremovetg
-
Install the dependencies:
npm install
-
Create a
.env
file in the root directory and add your bot token and developer chat ID:BOT_TOKEN=your-telegram-bot-token DEVELOPER_CHAT_ID=your-developer-chat-id
-
Run the bot:
node main.js
- Add the bot to your group.
- Make the bot an administrator with the permission to delete messages.
- The bot will automatically start deleting join and leave messages.
/start
: Provides instructions on how to use the bot./status@botusername
: Checks if the bot is running and has the necessary permissions.