Skip to content

trestoa/slack-to-telegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slack-to-telegram-bot

Bot for forwarding slack messages to telegram.

Usage

Tested on Python 3.5.

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, see http://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id-ruby-gem-telegram-bot.

Run with:

python bot.py # <- You could not have guessed that!

You can also build and use the docker image:

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>

Other implementations

There is also PHP version of this project (same api, few additional features) maintained by 421p

Depencencies

Install the dependencies via pip: pip install -r requirements.txt.

License

Licensed under the Unlicense. Do with it whatever you want.

About

Bot for forwarding slack messages to telegram.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages