Skip to main content
Module

x/grammy_menu/mod.ts>MenuRange#url

Easily create interactive menus with grammY.
Go to Latest
method MenuRange.prototype.url
import { MenuRange } from "https://deno.land/x/grammy_menu@v1.1.2/mod.ts";

Adds a new URL button. Telegram clients will open the provided URL when the button is pressed. Note that they will not notify your bot when that happens, so you cannot react to this button.

Parameters

text: MaybeDynamicString<C>

The text to display

url: string

HTTP or tg:// url to be opened when button is pressed. Links tg://user?id=<user_id> can be used to mention a user by their ID without using a username, if this is allowed by their privacy settings.