ApiMethods.getUpdates(args?: { offset?: number; limit?: number; timeout?: number; allowed_updates?: ReadonlyArray<Exclude<keyof Update, "update_id">>; }): Update[]
Use this method to receive incoming updates using long polling (wiki). Returns an Array of Update objects.
Notes
- This method will not work if an outgoing webhook is set up.
- In order to avoid getting duplicate updates, recalculate offset after each server response.
optional
args: { offset?: number; limit?: number; timeout?: number; allowed_updates?: ReadonlyArray<Exclude<keyof Update, "update_id">>; }
Update[]