keyboardButtonGame

Button to start a game

Available only in inline keyboards.

When pressed, clients must open the game from the attached messageMediaGame constructor by invoking messages.getBotCallbackAnswer with the game flag set, as described in Starting a game.

اسکیمای سازنده از لایه 222 در دسترس است. تغییر »

Parameters

Name Type Description
flags # Flags, see TL conditional fields
style flags.10?KeyboardButtonStyle Button style, see here » for more info on button styles.
text string Button text

Type

KeyboardButton

Related pages

Bot buttons

Users can interact with your bot via buttons or even inline buttons, straight from inline messages in any chat.

replyInlineMarkup

Represents an inline keyboard

game

Indicates an already sent game

messageMediaGame

Telegram game

messages.getBotCallbackAnswer

Press an inline callback button and get a callback answer from the bot

HTML5 games

Bots can offer users HTML5 games to play solo or to compete against each other in groups and one-on-one chats.