Module

x/grammy/convenience/keyboard.ts>Keyboard.from

The Telegram Bot Framework.
Very Popular
Go to Latest
method Keyboard.from
import { Keyboard } from "https://dotland.deno.dev/x/grammy@v1.20.2/convenience/keyboard.ts";

Turns a two-dimensional keyboard button array into a keyboard instance. You can use the static button builder methods to create keyboard button objects.

Parameters

source: KeyboardSource

A two-dimensional button array