Skip to main content
Module

x/grammy_conversations/mod.ts>ConversationForm#url

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

Waits until the user sends a URL, and returns this URL. If the user sends something that cannot be parsed to a URL by the global URL constructor, these updates will be skipped. You may specify the otherwise handler that is called in such cases. Among other things, this allows you to tell the user that they did not send a valid URL.

Note that the URL constructor requires

Parameters

optional
otherwise: (ctx: C) => unknown | Promise<unknown>

Handler that will be run for skipped updates