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

x/mtkruto/types/1_keyboard_button.ts>KeyboardButton

[WIP] Cross-runtime JavaScript library for building Telegram clients
Go to Latest
namespace KeyboardButton
import { KeyboardButton } from "https://deno.land/x/mtkruto@0.0.989/types/1_keyboard_button.ts";

Interfaces

This object defines the criteria used to request a suitable chat. The identifier of the selected chat will be shared with the bot when the corresponding button is pressed. More about requesting chats

This object defines the criteria used to request a suitable user. The identifier of the selected user will be shared with the bot when the corresponding button is pressed. More about requesting users

type alias KeyboardButton
import { type KeyboardButton } from "https://deno.land/x/mtkruto@0.0.989/types/1_keyboard_button.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.