Skip to content

Telegram bot used to contact admins of groups and channels

License

Notifications You must be signed in to change notification settings

majid-vaghari/messenger-bot

Repository files navigation

Messenger Bot

This is a Telegram bot used to send messages to channel admins.

Installation

  • 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 of production. 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

About

Telegram bot used to contact admins of groups and channels

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published