diff options
author | Wim <wim@42.be> | 2016-11-20 17:02:17 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2016-11-20 17:02:17 +0100 |
commit | 94ea775232eabfd3945ef9b5d6e93e3505fd4a99 (patch) | |
tree | 9930dd9d68cee5e7b8153d3e3345539f21fe1fbe /bridge/bridge.go | |
parent | 449ed31e25f2c21ac9db258999a5a893889983eb (diff) | |
parent | 2e4b7fac1146c186f28599d62379d7e9912fda81 (diff) | |
download | matterbridge-msglm-94ea775232eabfd3945ef9b5d6e93e3505fd4a99.tar.gz matterbridge-msglm-94ea775232eabfd3945ef9b5d6e93e3505fd4a99.tar.bz2 matterbridge-msglm-94ea775232eabfd3945ef9b5d6e93e3505fd4a99.zip |
Merge branch 'telegram'
Add 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 } |