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

x/grammy/mod.ts>Keyboard#oneTime

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

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

Keyboards are non-one-time by default, use this function to enable it (without any parameters or pass true). Pass false to force the keyboard to be non-one-time.

Parameters

optional
isEnabled = [UNSUPPORTED]

true if the keyboard should be one-time, and false otherwise