Replies Bot is a Telegram bot designed to manage custom replies for commands in group chats. It allows users to add, remove, and list custom replies, as well as invite the bot to new groups.
- Add Custom Reply: Add a custom reply for a specific command.
- Remove Custom Reply: Remove a custom reply for a specific command.
- List Custom Replies: List all custom replies in the current chat.
- Invite Bot: Get an invite link to add the bot to other groups.
-
src/commands/: Contains command handlers for the bot.
addReply.ts: Handles the/add_replycommand.invite.ts: Handles the/invitecommand.listReplies.ts: Handles the/repliescommand.removeReply.ts: Handles the/remove_replycommand.start.ts: Handles the/startcommand.
-
src/db/: Contains database-related files.
db.ts: Database connection setup.schema.ts: Database schema definitions.migrations/: Database migration files.
-
src/handlers/: Contains handlers for different types of bot events.
callbackHandler.ts: Handles callback queries.messageHandler.ts: Handles incoming messages.
-
src/server.ts: Main entry point for the bot. Sets up the bot and registers command handlers.
-
Clone the repository:
git clone https://github.com/0xHamzaDev/replies-bot.git cd replies-bot -
Install dependencies:
npm install
-
Set up environment variables: Create a
.envfile in the root directory and add your Telegram bot token:TOKEN=your-telegram-bot-token -
Run the bot:
npm start
- /start: Initialize the bot.
- /add_reply : Add a custom reply for a command.
- /remove_reply : Remove a custom reply for a command.
- /replies: List all custom replies in the current chat.
- /invite: Get an invite link to add the bot to other groups.
Contributions are welcome! Please open an issue or submit a pull request for any changes.
This project is licensed under the MIT License.