mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-12-24 18:25:40 +00:00
Enable Long Polling for Telegram. Reduces bandwidth consumption. (#350)
Fixes #349.
This commit is contained in:
parent
762c3350f4
commit
2e2187ebf4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user