import { Api } from "https://dotland.deno.dev/x/grammy@v1.12.0/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 AbortSignal
to cancel the request
Official reference: https://core.telegram.org/bots/api#getupdates