Remove a broken check for GetUpdatesChan.
parent
9105c34c59
commit
5f38203a15
3
bot.go
3
bot.go
|
@ -493,12 +493,9 @@ func (bot *BotAPI) GetUpdatesChan(config UpdateConfig) (UpdatesChannel, error) {
|
|||
}
|
||||
|
||||
for _, update := range updates {
|
||||
if update.UpdateID >= config.Offset {
|
||||
config.Offset = update.UpdateID + 1
|
||||
ch <- update
|
||||
}
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
||||
return ch, nil
|
||||
|
|
|
@ -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"`
|
||||
|
|
Loading…
Reference in New Issue