A just for fun Telegram Bot.
We are using a webhook to implement this bot. Deployment is currently targeted to Heroku.
- Help command
/help
- Say
hi
and the bot will reply. - Laugh like
hahaha
and the bot will reply.
This bot can be added to group chats.
- Linux (tested in Ubuntu)
- Should be easy to adapt to MacOS, mainly other ngrok binary.
- curl
- jq
Use ngrok for local webhook testing.
You must set the following env vars for the ngrok related scripts to work:
export NGROK_AUTH_TOKEN=<ngrok-auth-token>
export PORT=8443
We are using dotenv to load environment variables.
You must to set the following environment variables in .env
BOT_TOKEN=<your-bot-token>
DEBUG='telegraf:*'
URL=https://1234567890.ngrok.io # Auto-set by `ngrok-start.sh`
- Start ngrok:
./ngrok-start.sh
- Run
npm run start-local
- This will read the ngrok URL from the local ngrok API