Merge branch 'master' into develop

bot-api-6.1
Syfaro 2018-10-08 14:00:38 -05:00
commit 9d2d117c0e
2 changed files with 5 additions and 2 deletions

3
bot.go
View File

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

View File

@ -307,7 +307,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"`