Skip to main content
Module

x/grammy_conversations/mod.ts>ConversationHandle#waitFrom

Conversational interfaces for grammY
Go to Latest
method ConversationHandle.prototype.waitFrom
import { ConversationHandle } from "https://deno.land/x/grammy_conversations@v1.1.1/mod.ts";

Waits for a new update (e.g. a message, callback query, etc) from the given user. As soon as an update arrives from this user, the corresponding context object is returned.

Parameters

user: number | User

The user to wait for

optional
opts: OtherwiseConfig<C>

Optional config for discarded updates

Returns

Promise<C & { from: User; }>