Send slack desktop notifications to telegram (if not read in 10s) with emoji support.
Inspired by slack-to-telegram-bot. Uses fork of nlopes/slack package.
For configuration, set the following environment variables:
$ export SLACK_TOKEN='' # Slack bot token
$ export TELEGRAM_TOKEN='' # Telegram bot token
$ export TELEGRAM_TARGET='' # Target chat
For the target chat id, see that stackoverflow question.
You can build and use the docker image (or just use ernado/slackbot
):
docker build -t <docker-image-url:docker-image-tag> .
docker push <docker-image-url:docker-image-tag>
docker run -d --name slack-to-telegram-bot --restart=always -e TELEGRAM_TOKEN='$TELEGRAM_TOKEN' -e TELEGRAM_TARGET='$TELEGRAM_TARGET' -e SLACK_TOKEN='$SLACK_TOKEN' <docker-image-url:docker-image-tag>