import { Api } from "https://deno.land/x/grammy@v1.31.2/mod.ts";
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.
Parameters
Optional remaining parameters, confer the official reference below
optional
signal: AbortSignalOptional AbortSignal
to cancel the request
Official reference: https://core.telegram.org/bots/api#getupdates