From 02e3d7852bf37cc2dd65aa9d37fc3501e17203f8 Mon Sep 17 00:00:00 2001 From: Wim Date: Sun, 12 Dec 2021 00:35:32 +0100 Subject: Update telegram-bot-api to v5 (#1660) --- bridge/telegram/telegram.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'bridge/telegram/telegram.go') 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 -- cgit v1.2.3