Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grammy/types.web.ts>Opts

The Telegram Bot Framework.
Very Popular
Latest
type alias Opts
import { type Opts } from "https://deno.land/x/grammy@v1.32.0/types.web.ts";

Utility type providing the argument type for the given method name or {} if the method does not take any parameters

definition: [M in keyof ApiMethods<F>]: Params<F, M>[0] extends undefined ? { } : NonNullable<Params<F, M>[0]>

Type Parameters

M extends keyof ApiMethods
definition: OptsF<InputFile>[M]