Description
This script was designed to work as a daemon that does following:
- Endlessly requests updates from specific Telegram app via long polling;
- Sends received updates to the given WEBHOOK url;
- Waits for WEBHOOK's response, to send it back to the given Telegram app.
Steps to start the script
- Add to your
.env
file values of APP_TOKEN (TG app token) and WEBHOOK (url) docker build -t tg-adapter .
docker run --env-file=.env --name tg-adapter -d tg-adapter:latest