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"`