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

Adds 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