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

x/grammy/mod.ts>InlineKeyboard.url

The Telegram Bot Framework.
Very Popular
Latest
method InlineKeyboard.url
import { InlineKeyboard } from "https://deno.land/x/grammy@v1.32.0/mod.ts";

Creates a new URL button. Telegram clients will open the provided URL when the button is pressed.

Parameters

text: string

The text to display

url: string

HTTP or tg:// url to be opened when the 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.

Returns

InlineKeyboardButton.UrlButton