Create custom buttons

A guide to creating buttons with the functionality of some commands

The main command for creating buttons /components

Arguments of the /components buttons add command:

ArgumentDescriptionRequired

message_url

Link to the message for which the button will be added

Yes

style

Button style

Yes

id-or-url

The ID of the button or a link to the resource (If the style is a Link

Yes

row

The row of the component where the button will be added

Yes

column

Column of the component where the button will be added

Yes

label

Button label

No

emoji

Button emoji

No

disabled

Will the button be turned off

No

The arguments "label" or "emoji" are required

Arguments of the /components buttons remove command:

ArgumentDescriptionRequired

message_url

Link to the message in which the button will be removed

Yes

row

The row of the component where the button will be removed

Yes

column

The column of the component where the button will be removed

Yes

Доступные команды для кнопок:

ID: cmd{get-gift}gift{giftId}

Arguments:

NameDescriptionRequired

gift

Gift ID

Yes

A guide to creating gifts

ID: cmd{quest-take-from-user}quest{questId}

Arguments:

NameDescriptionRequired

quest

Quest ID

Yes

A guide to creating quests

ID: cmd{profile}eph reply

Arguments:

NameDescriptionRequired

eph

If there is, then the message will be visible only to the person who pressed the button

No

reply

If there is, the message will be sent as a reply message.

No

usr

The ID of the user who can use the button, if not, everyone can use it

No

mbr

The ID of the user whose profile will be displayed, if absent, the profile of the user who used the button is displayed.

No

ID: cmd{say}channelId{ID}messageId{ID}permission{ID}eph reply

Arguments:

NameDescriptionRequried

eph

If there is, then the message will be visible only to the person who pressed the button

No

reply

If there is, the message will be sent as a reply message.

No

update

If there is, the message will be edited

No

channelId

ID of the channel to search for the message

No

messageId

Message ID

No

permission

Permission ID

No

The channelId and messageId arguments are used together, you can't use one

The channelId and messageId arguments are used to output a message from a specific channel. In this way, you can create a button that will output any message from any channel.

The message is output via the channelId and messageId arguments together with the buttons and files attached to this message.

If you insert a link to a message into the say command form, the bot will output a completely copied message.

Last updated