telegram-welcome-bot
telegram-welcome-bot copied to clipboard
👋 Simple greeting bot for Telegram groups
Telegram Welcome Bot
Simple Telegram bot that sends a welcome message to new members.
Note: not actively maintained, but will accept PRs and review small bugs.
Features
- Welcomes new members to a group.
- Welcome message can be changed with the
/change_welcome_messagecommand. - Filesystem persistence for restart resilience.
- Dead-easy deployment and setup.
Installation
You need NodeJS v8+ installed on your server to deploy and run this bot.
- Clone this repo on a server.
- Execute
npm ion the repo directory. - Create a bot through the @BotFather bot to obtain both a
bot api tokenand abot username(@example_bot). - Execute
npm run start -- --persistence-path <filesystem path for persistence> --api-token <your bot's token> --bot-username <your bot's username>.
Command line options have the following short forms:
--persistence-path:-p(default path is<repo directory>/.persistence)--api-token:-t--bot-username:-u
Command list
For autocompletion and command list within the Telegram apps, you might want to configure the command list through BotFather.
For your convenience, here's a copy-paste list of the commands, correctly formatted:
change_welcome_message - Changes the welcome message of the group
help - Displays a help message
Deployment example
$ npm run start -- -p ~/bot -t 582659278:JsjjSHDNns-JjshJhann2nhJjans88kKSiw -u welcome_message_bot
Enjoy!