import { Bot } from "https://dotland.deno.dev/x/grammy@v1.20.0/mod.ts";
This is an internal method that you probably will not ever need to call. It is used whenever a new update arrives from the Telegram servers that your bot will handle.
If you're writing a library on top of grammY, check out the documentation of the runner plugin for an example that uses this method.