MadelineProtoDocs/old_docs/API_docs_v41/constructors/keyboardButtonCallback.md
2020-06-16 17:50:25 +02:00

782 B

title description image
keyboardButtonCallback Callback button https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: keyboardButtonCallback

Back to constructors index

Callback button

Attributes:

Name Type Required Description
text string Yes Button text
data bytes Yes Callback data

Type: KeyboardButton

Example:

$keyboardButtonCallback = ['_' => 'keyboardButtonCallback', 'text' => 'string', 'data' => 'bytes'];

Or, if you're into Lua:

keyboardButtonCallback={_='keyboardButtonCallback', text='string', data='bytes'}