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

Waits for an update which contains the given game query, or for the game query data to match the given regular expression. This uses the same logic as bot.gameQuery.

Parameters

trigger: MaybeArray<string | RegExp>

The string or regex to match

optional
opts: OtherwiseConfig<C>

Optional config for discarded updates