Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/grammy_types/methods.ts>Opts

Type declarations of the Telegram Bot API.
Very Popular
Go to Latest
type alias Opts
import { type Opts } from "https://deno.land/x/grammy_types@v3.5.2/methods.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]>