Max Add Inline Button#

Max adds an inline button to an existing or new message body assembly object.

Connector[Link] Connection object.
Message Body

[Link] Message body assembly object.

If not specified, a new message body assembly object will be created; if specified, the one provided will be used.

This object can be used multiple times. For example, you can add photos, videos, buttons to it using the corresponding blocks. Afterwards, you can use this object in message sending blocks.

New RowStart a new row.
TypeButton type.
Text[Text] Button text.
URL[Text] If you selected the "Link" button, specify the URL.
Payload

[Text] For "Callback" button - this is the button token.

"OpenApp" - the launch parameter that will be passed to the initData of the mini-app.

"Clipboard" - the text that is copied to the clipboard after clicking the button.

Web App

[Text] Only for "OpenApp" type.

Public name (username) of the bot or a link to it, whose mini-app should be launched.

Contact ID

[Text] Only for "OpenApp" type.

Identifier of the bot whose mini-app should be launched.

Result[Link] Message body assembly object.
Error Handling Level

Select the error handling level.

Possible values:

  • "Default" - by default;
  • "Ignore" - errors are ignored;
  • "Handle" - errors are handled.

If "Default" is selected, the value from the "Start" block of this diagram will be used.

Message Level

Select the message level that blocks will output during operation.

Possible values:

  • "Default" - by default;
  • "Release" - output is disabled;
  • "Debug" - outputs main information;
  • "Detailed" - outputs detailed information.

If "Default" is selected, the value from the "Start" block of this diagram will be used.

Error Message[Text] Returns detailed information about the error in case of incorrect execution of the block's work.