This is a Telegram bot used to send messages to channel admins.
- clone the repository
- create a file named
.env
in root directory of the project. containing the bot token and admin group id like so:
BOT_TOKEN="<bot token here>"
ADMIN_GROUP_ID="<admin group id here>"
note that the admin group id shoud be a negative integer and the bot token should be of the form 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11
. for more information go to Telegram Bot API Documentation
- If you're running on production environment, you should have an environment variable
with the name of
NODE_ENV
and value ofproduction
. So if you're on production server, add this line before continuing:
export NODE_ENV=production
- install dependencies:
npm install
- run the server
npm start