Skip to main content
Latest
method ConversationHandle.prototype.waitForCommand
import { ConversationHandle } from "https://deno.land/x/grammy_conversations@v1.2.0/mod.ts";

Waits for the specified command. This uses the same logic as bot.command.

Type Parameters

S extends string

Parameters

command: MaybeArray<StringWithSuggestions<
| S
| "start"
| "help"
| "settings"
>>

The command to match

optional
opts: OtherwiseConfig<C>

Optional config for discarded updates