Skip to main content
Module

x/grammy_conversations/mod.ts>ConversationHandle#skip

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

Skips handling the update that was received in the last wait call. Once called, the conversation resets to the last wait call, as if the update had never been received. Unless { drop: true } is passed, the control flow is passed on immediately, so that middleware downstream of the conversation can continue handling the update.

Effectively, calling await conversation.skip() behaves as if this conversation had not received the update at all.

While the conversation rewinds its logs internally, it does not unsend messages that you send between the calls to wait and skip.

Parameters

optional
opts: { drop?: boolean; } = [UNSUPPORTED]