Skip to main content
Module

x/grammy_conversations/deps.deno.ts>Keyboard#clone

Conversational interfaces for grammY.
Latest
method Keyboard.prototype.clone
import { Keyboard } from "https://deno.land/x/grammy_conversations@v1.2.0/deps.deno.ts";

Creates and returns a deep copy of this keyboard.

Optionally takes a new grid of buttons to replace the current buttons. If specified, only the options will be cloned, and the given buttons will be used instead.

Parameters

optional
keyboard: KeyboardButton[][] = [UNSUPPORTED]