Skip to main content
Module

x/grammy/types.deno.ts>KeyboardButton

The Telegram Bot Framework.
Very Popular
Go to Latest
type alias KeyboardButton
import { type KeyboardButton } from "https://deno.land/x/grammy@v1.15.3/types.deno.ts";

This object represents one button of the reply keyboard. For simple text buttons, String can be used instead of this object to specify the button text. The optional fields web_app, request_user, request_chat, request_contact, request_location, and request_poll are mutually exclusive.

definition:
| KeyboardButton.CommonButton
| KeyboardButton.RequestUserButton
| KeyboardButton.RequestChatButton
| KeyboardButton.RequestContactButton
| KeyboardButton.RequestLocationButton
| KeyboardButton.RequestPollButton
| KeyboardButton.WebAppButton
| string