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

Waits for a new message or channel post that contains the given text, or that contains text which matches the given regular expression. This uses the same logic as bot.hears.

Parameters

trigger: MaybeArray<string | RegExp>

The string or regex to match

optional
opts: OtherwiseConfig<C>

Optional config for discarded updates