Skip to content
This repository has been archived by the owner on Jul 25, 2021. It is now read-only.

mdusher/telegram-slack-relay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Telegram to Slack One-way Relay

So, I needed (see "didn't need") a way of checking my Telegram group messages without opening up Telegram as we tried to shift my friend group to Slack. So I whipped up this to relay messages via a Telegram Bot to a Slack web hook.

You'll need to setup a Telegram bot using BotFather, disable privacy (/setprivacy to BotFather) and add it to your group chat. There is no safety switch for others talking to or adding this bot to their own group chat - but it will relay any messages sent to it to the default channel you specify for the webhook in Slack.

Usage

git clone git@github.com:mdusher/telegram-slack-relay.git
cd telegram-slack-relay
bundle install
SLACK_URL="https://url.to.slack/webhook" TELEGRAM_APIKEY="telegram-bot-api-key" ruby relay.rb

About

One-way Telegram to Slack Relay

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages