import { type ReqResHandler } from "https://dotland.deno.dev/x/grammy@v1.31.3/convenience/frameworks.ts";
Abstraction over a request-response cycle, providing access to the update, as well as a mechanism for responding to the request and to end it.
Properties
update: Promise<Update>
The update object sent from Telegram, usually resolves the request's JSON body
Ends the request immediately without body, called after every request unless a webhook reply was performed
Responds that the request is unauthorized due to mismatching X-Telegram-Bot-Api-Secret-Token headers
optional
handlerReturn: Promise<T>Some frameworks (e.g. Deno's std/http listenAndServe
) assume that
handler returns something