all repos — telegram-bot-api @ b60db1d2e17d88a92816d9ad3a49fd50da08ef87

Golang bindings for the Telegram Bot API

Revert "Remove a broken check for GetUpdatesChan."

This was not properly tested and results in the bot looping.

This reverts commit 5f38203a155afa901c7deb70596a088a8424a9ee.
Syfaro syfaro@huefox.com
Mon, 08 Oct 2018 13:58:50 -0500
commit

b60db1d2e17d88a92816d9ad3a49fd50da08ef87

parent

e2f846d83a091384cafbbf817762de414d57b1f4

2 files changed, 5 insertions(+), 2 deletions(-)

jump to
M bot.gobot.go

@@ -501,7 +501,10 @@ continue

} for _, update := range updates { - ch <- update + if update.UpdateID >= config.Offset { + config.Offset = update.UpdateID + 1 + ch <- update + } } } }()
M passport.gopassport.go

@@ -307,7 +307,7 @@ LastNameNative string `json:"last_name_native"`

MiddleNameNative string `json:"middle_name_native"` } - // IDDocumentData https://core.telegram.org/passport#iddocumentdata + // IdDocumentData https://core.telegram.org/passport#iddocumentdata IDDocumentData struct { DocumentNumber string `json:"document_no"` ExpiryDate string `json:"expiry_date"`