type alias Payloadimport { type Payload } from "https://deno.land/x/grammy@v1.22.4/core/client.ts"; Type ParametersM extends Methods<R>R extends RawApidefinition: M extends unknown ? R[M] extends (signal?: AbortSignal) => unknown ? { } : R[M] extends (args: any, signal?: AbortSignal) => unknown ? Parameters<R[M]>[0] : never : never