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

x/grammy/mod.ts>Keyboard#persistent

The Telegram Bot Framework.
Very Popular
Latest
method Keyboard.prototype.persistent
import { Keyboard } from "https://deno.land/x/grammy@v1.30.1/mod.ts";

Make the current keyboard persistent. See https://grammy.dev/plugins/keyboard#persistent-keyboards for more details.

Keyboards are not persistent by default, use this function to enable it (without any parameters or pass true). Pass false to force the keyboard to not persist.

Parameters

optional
isEnabled = [UNSUPPORTED]

true if the keyboard should persist, and false otherwise