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

x/mtkruto/mod.ts>KeyboardButton

[WIP] Cross-runtime JavaScript library for building Telegram clients
Go to Latest
namespace KeyboardButton
Re-export
import { KeyboardButton } from "https://deno.land/x/mtkruto@0.1.117/mod.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.

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.

type alias KeyboardButton
Re-export
import { type KeyboardButton } from "https://deno.land/x/mtkruto@0.1.117/mod.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.Text
| KeyboardButton.RequestUser
| KeyboardButton.RequestChat
| KeyboardButton.RequestContact
| KeyboardButton.RequestLocation
| KeyboardButton.RequestPoll
| KeyboardButton.WebApp