diff options
author | Wim <wim@42.be> | 2016-11-15 23:15:57 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2016-11-15 23:15:57 +0100 |
commit | cd18d89894903a92ac12e1a2e78582b543a4ab6e (patch) | |
tree | de70d2f4abb65992170b2d07e187ef4cb58e3c8c /bridge/bridge.go | |
parent | 449ed31e25f2c21ac9db258999a5a893889983eb (diff) | |
download | matterbridge-msglm-cd18d89894903a92ac12e1a2e78582b543a4ab6e.tar.gz matterbridge-msglm-cd18d89894903a92ac12e1a2e78582b543a4ab6e.tar.bz2 matterbridge-msglm-cd18d89894903a92ac12e1a2e78582b543a4ab6e.zip |
Add initial telegram support
Diffstat (limited to 'bridge/bridge.go')
-rw-r--r-- | bridge/bridge.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bridge/bridge.go b/bridge/bridge.go index 4a422c75..8c715369 100644 --- a/bridge/bridge.go +++ b/bridge/bridge.go @@ -7,6 +7,7 @@ import ( "github.com/42wim/matterbridge/bridge/irc" "github.com/42wim/matterbridge/bridge/mattermost" "github.com/42wim/matterbridge/bridge/slack" + "github.com/42wim/matterbridge/bridge/telegram" "github.com/42wim/matterbridge/bridge/xmpp" "strings" ) @@ -55,6 +56,9 @@ func New(cfg *config.Config, bridge *config.Bridge, c chan config.Message) *Brid case "discord": b.Config = cfg.Discord[name] b.Bridger = bdiscord.New(cfg.Discord[name], bridge.Account, c) + case "telegram": + b.Config = cfg.Telegram[name] + b.Bridger = btelegram.New(cfg.Telegram[name], bridge.Account, c) } return b } |