From 5f38203a155afa901c7deb70596a088a8424a9ee Mon Sep 17 00:00:00 2001 From: Syfaro Date: Mon, 8 Oct 2018 01:58:33 -0500 Subject: [PATCH] Remove a broken check for GetUpdatesChan. --- bot.go | 5 +---- passport.go | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/bot.go b/bot.go index 35d1e25..cddf72c 100644 --- a/bot.go +++ b/bot.go @@ -493,10 +493,7 @@ func (bot *BotAPI) GetUpdatesChan(config UpdateConfig) (UpdatesChannel, error) { } for _, update := range updates { - if update.UpdateID >= config.Offset { - config.Offset = update.UpdateID + 1 - ch <- update - } + ch <- update } } }() diff --git a/passport.go b/passport.go index ab0ba90..85cb990 100644 --- a/passport.go +++ b/passport.go @@ -291,7 +291,7 @@ type ( 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"`