Add allowed_updates to GetUpdates

This commit is contained in:
TJ Horner 2021-03-09 15:52:22 -05:00
parent 24d4f79474
commit 3b5c8a96d7
2 changed files with 54 additions and 4 deletions

2
bot.go
View file

@ -387,7 +387,7 @@ func (bot *BotAPI) GetFile(config FileConfig) (File, error) {
// GetUpdates fetches updates.
// If a WebHook is set, this will not return any data!
//
// Offset, Limit, and Timeout are optional.
// Offset, Limit, Timeout, and AllowedUpdates are optional.
// To avoid stale items, set Offset to one higher than the previous item.
// Set Timeout to a large number to reduce requests so you can get updates
// instantly instead of having to wait between requests.