Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grammy_menu/mod.ts>MenuRange#url

Interactive menus for grammY.
Go to Latest
method MenuRange.prototype.url
import { MenuRange } from "https://deno.land/x/grammy_menu@v1.2.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: MaybeDynamicString<C>

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.