Forward all Slack direct messages to Telegram when you are not logged into Slack
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
vendor
.gitignore
Dockerfile
Gopkg.lock
Gopkg.toml
Makefile
README.md
VERSION
config.example.toml
main.go

README.md

slack-to-telegram is a simple way to forward notifications from Slack to Telegram when you are not logged into Slack. It uses Slack's Real Time Messaging API to connect to specified accounts and will forward messages through Telegram's Bot API to you.

Why

I currently run an Android OS on my phone without Google services. Slack for Android requires Google Cloud Messaging (GCM) in order to receive notifications. Since Telegram has it's own mechanism for notifications on Android that does not rely on GCM, I decided to use this as a workaround to receive timely Slack notications.

Features

  • Support for multiple Slack workspaces
  • Get notifications for direct messages and @username callouts in channels

One Time Initial Setup

Config File

Create a file named config.toml and fill in the details from initial setup above.

[telegram]
user = 123456789 
token = "323456789:ABCDE_fB19OHQZUF3FPPPF43PTEEB"

[[slack]]
name = "workspace #1"
token = "xoxp-xxxxxxx-xxxxxxxx-xxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

[[slack]]
name = "workspace #2"
token = "xoxp-xxxxxxx-xxxxxxxx-xxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

Installation

Binaries

The easiest way is to download a pre-built binary from the GitHub Releases page.

Docker

You can also just run it as a docker container.

docker run --restart=always -d -v $(pwd)/config.toml:/config.toml vdan/slack-to-telegram:latest

Usage

./slack-to-telegram --config config.toml

FAQ

  1. Should I use slack-to-telegram? That's up to you. Use at your own risk.

Powered by

Build From Source

make tools && make