summaryrefslogtreecommitdiffstats
path: root/bridge/telegram/telegram.go
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/telegram/telegram.go')
-rw-r--r--bridge/telegram/telegram.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/bridge/telegram/telegram.go b/bridge/telegram/telegram.go
index 2aabf3a8..9ce4eb14 100644
--- a/bridge/telegram/telegram.go
+++ b/bridge/telegram/telegram.go
@@ -35,7 +35,9 @@ func (b *Btelegram) Connect() error {
flog.Debugf("%#v", err)
return err
}
- updates, err := b.c.GetUpdatesChan(tgbotapi.NewUpdate(0))
+ u := tgbotapi.NewUpdate(0)
+ u.Timeout = 60
+ updates, err := b.c.GetUpdatesChan(u)
if err != nil {
flog.Debugf("%#v", err)
return err