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

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

Parameters

trigger: MaybeArray<string | RegExp>

The string or regex to match

optional
opts: OtherwiseConfig<C>

Optional config for discarded updates