import { Api } from "https://dotland.deno.dev/x/grammy@v1.10.0/mod.ts";
Use this method to receive incoming updates using long polling (wiki). An Array of Update objects is returned.
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