- Heroku-Cli installed and configured (https://devcenter.heroku.com/articles/heroku-cli)
- A telegram bot token (https://core.telegram.org/bots#6-botfather)
First, clone the repository, then customize the code on index.js and start deploy.sh passing bot token as argument:
./deploy.sh XXXXXXXXXXXXXXXXXXX
When you make changes on code, deploy the changes with a git commit & push:
git commit -am "some code changes" && git push heroku master
- Telegram Bot API (used via telegraf)
- MTProto API (used via @mtproto/core)
Telegram Bot API doen't provide any methods to wipe chat history, so MTProto API must be used for this purpose.