Skip to content

export Function

CallbackGame ​

Constructor ​

ts
 KeyboardButton.CallbackGame( text, callback_game )
ParameterTypeDescription
textstringLabel text on the button.
callback_gamestringDescription of the game that will be launched when the user presses the button.

Return: KeyboardButtonPayload

A modern, powerful library for building your Telegram bots, with seamless support for both JavaScript and Typescript.