Remove a broken check for GetUpdatesChan.

bot-api-6.1
Syfaro 2018-10-08 01:58:33 -05:00
parent 9105c34c59
commit 5f38203a15
2 changed files with 2 additions and 5 deletions

5
bot.go
View File

@ -493,10 +493,7 @@ func (bot *BotAPI) GetUpdatesChan(config UpdateConfig) (UpdatesChannel, error) {
} }
for _, update := range updates { for _, update := range updates {
if update.UpdateID >= config.Offset { ch <- update
config.Offset = update.UpdateID + 1
ch <- update
}
} }
} }
}() }()

View File

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