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

x/grammy/mod.ts>InlineKeyboard#pay

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

Adds a new payment button, confer https://core.telegram.org/bots/api#payments

This type of button must always be the first button in the first row and can only be used in invoice messages.

Parameters

text: string

The text to display. Substrings “⭐” and “XTR” in the buttons's text will be replaced with a Telegram Star icon.