Usage
With Docker
- Get a telegram bot token from @botfather, and channel id (can also use your own user id) from @jsondumpbot (https://github.com/nadam/jsondumpbot) and paste it in docker-compose.yml
- Run
docker-compose up -d
- Find logs in logs/log.log file
Without Docker
- Install node and npm
- Run
npm i
to install node_modules - Run
export TELEGRAM_BOT_TOKEN=<your bot token here>
to add bot token to environment variable - Run
export CHANNEL_ID=<channel id or user id here>
to add bot token to environment variable - Run
npm start
to start the bot