Skip to main content
Deno 2 is finally here 🎉️
Learn more
Very Popular
Go to Latest
method InlineKeyboard.copyText
import { InlineKeyboard } from "https://deno.land/x/grammy@v1.31.1/convenience/keyboard.ts";

Creates a new copy text button. When clicked, the specified text will be copied to the clipboard.

Parameters

text: string

The text to display

copyText: string | CopyTextButton

The text to be copied to the clipboard

Returns

InlineKeyboardButton.CopyTextButtonButton