Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ernado/slack-to-tg
Send slack desktop notifications to telegram
https://github.com/ernado/slack-to-tg
bot go golang integration slack telegram
Last synced: about 1 month ago
JSON representation
Send slack desktop notifications to telegram
- Host: GitHub
- URL: https://github.com/ernado/slack-to-tg
- Owner: ernado
- License: bsd-3-clause
- Created: 2018-07-18T12:41:50.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-18T16:06:56.000Z (over 6 years ago)
- Last Synced: 2024-12-09T18:00:35.673Z (about 2 months ago)
- Topics: bot, go, golang, integration, slack, telegram
- Language: Go
- Homepage:
- Size: 141 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# slack-to-tg
Send slack desktop notifications to telegram (if not read in 10s) with emoji support.Inspired by [slack-to-telegram-bot](https://github.com/trestoa/slack-to-telegram-bot).
Uses [fork](https://github.com/ernado/slack) of [nlopes/slack](https://github.com/nlopes/slack) package.## Usage
For configuration, set the following environment variables:
```bash
$ 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]( http://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id-ruby-gem-telegram-bot).You can build and use the docker image (or just use `ernado/slackbot`):
```bash
docker build -t .
docker push
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'
```