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

x/grammy/convenience/keyboard.ts>Keyboard#row

The Telegram Bot Framework.
Very Popular
Latest
method Keyboard.prototype.row
import { Keyboard } from "https://deno.land/x/grammy@v1.32.0/convenience/keyboard.ts";

Adds a 'line break'. Call this method to make sure that the next added buttons will be on a new row.

You may pass a number of KeyboardButton objects if you already have the instances for some reason. You most likely don't want to pass any arguments to row.

Parameters

...buttons: KeyboardButton[]

A number of buttons to add to the next row