all repos — telegram-bot-api @ d06eead68daccd87bfdd6a10d289fd47cdeec987

Golang bindings for the Telegram Bot API

don't panic for failed updates, even in debug (fixes #14)
Syfaro syfaro@foxpaw.in
Sun, 09 Aug 2015 21:12:15 -0500
commit

d06eead68daccd87bfdd6a10d289fd47cdeec987

parent

adc490e379acaeda02d72b8e971dbc9f611cbf2c

1 files changed, 3 insertions(+), 7 deletions(-)

jump to
M updates.goupdates.go

@@ -13,13 +13,9 @@ go func() {

for { updates, err := bot.GetUpdates(config) if err != nil { - if bot.Debug { - panic(err) - } else { - log.Println(err) - log.Println("Failed to get updates, retrying in 3 seconds...") - time.Sleep(time.Second * 3) - } + log.Println(err) + log.Println("Failed to get updates, retrying in 3 seconds...") + time.Sleep(time.Second * 3) continue }