summaryrefslogtreecommitdiffstats
path: root/bridge/telegram/telegram.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2021-12-12 00:35:32 +0100
committerGitHub <noreply@github.com>2021-12-12 00:35:32 +0100
commit02e3d7852bf37cc2dd65aa9d37fc3501e17203f8 (patch)
treefb15a500adadafa78dc90449af30109d1b77f925 /bridge/telegram/telegram.go
parent3893a035be347a7687a41d2054dd1b274d3a0504 (diff)
downloadmatterbridge-msglm-02e3d7852bf37cc2dd65aa9d37fc3501e17203f8.tar.gz
matterbridge-msglm-02e3d7852bf37cc2dd65aa9d37fc3501e17203f8.tar.bz2
matterbridge-msglm-02e3d7852bf37cc2dd65aa9d37fc3501e17203f8.zip
Update telegram-bot-api to v5 (#1660)
Diffstat (limited to 'bridge/telegram/telegram.go')
-rw-r--r--bridge/telegram/telegram.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/bridge/telegram/telegram.go b/bridge/telegram/telegram.go
index 199a76ab..d696e9bc 100644
--- a/bridge/telegram/telegram.go
+++ b/bridge/telegram/telegram.go
@@ -9,7 +9,7 @@ import (
"github.com/42wim/matterbridge/bridge"
"github.com/42wim/matterbridge/bridge/config"
"github.com/42wim/matterbridge/bridge/helper"
- tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api"
+ tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
)
const (
@@ -49,11 +49,7 @@ func (b *Btelegram) Connect() error {
}
u := tgbotapi.NewUpdate(0)
u.Timeout = 60
- updates, err := b.c.GetUpdatesChan(u)
- if err != nil {
- b.Log.Debugf("%#v", err)
- return err
- }
+ updates := b.c.GetUpdatesChan(u)
b.Log.Info("Connection succeeded")
go b.handleRecv(updates)
return nil