Skip to content

Action: Send message

This action allows you to send a message to a user, channel, or group. You can fully customize it, from the content (text, multimedia, etc.) to additional features (keyboards, formatting, protection, etc.).

What can you do with this action?

  • Send simple or multimedia messages such as text, images, videos, audio, documents, etc.
  • Personalize messages using variables like {first_name}, {balance}, or {ref_link}. Full list available here.
  • Add lower or inline keyboards to your messages.
  • Choose the recipient for your messages.
  • Send dice and get random results.
  • Fully customizable.

How to create and configure the action

1. Create the action

  1. Go to your bot and click on 🛠 Edit.
  2. Select the button or send the command where you want to add the action:
    • Buttons: To select a button, click on it. The button will appear surrounded by < >.
    • Commands: To select a command, send it directly in the bot. Commands start with / or !.
  3. Click on Actions 🌟 to enter the actions menu.
  4. Click on 🎯 New action✉️ Send message to add it.
  5. Click on Configure 🛠 to enter to configure the action.

2. Set up options

➡️ Set message | Edit message

Set or edit the text or multimedia content you want to send. It can be text, images, videos, documents, dice, etc.

  • Example of a simple text:

    Hello, welcome to the bot!
    
  • Example using expressions:

    Hello {first_name}, your balance is {balance}.
    

➡️ Delete message (optional)

Delete the established message.

➡️ Send to someone else (optional)

Send the message to another bot user or a channel/group.

  • You must specify the ID or @username of the user, channel, or group that will receive the message.
  • If it's a channel or group, the bot must have admin privileges.
  • If not specified, the message will be sent to the user who clicked the button or sent the command.

➡️ Display keyboard (optional)

Attach an interactive keyboard with buttons to the message. This keyboard can be:

  • Lower: Appears below the user's text box.
  • Inline: Appears inside the message as clickable buttons.

➡️ Reply to message (optional)

Allows the sent message to be a reply to another previous message. To set this up, you need to use one of the following identifiers:

  • #ActionID#: The action ID of a previous Send message action within the same button or command.
  • #ActionID.message_id#: The message ID generated by Telegram. You can use it if you’ve previously obtained it with another Send message action in any part of your bot and stored it in a variable.

Note

Do not confuse #ActionID# (action ID generated by VisualMaker, which is a combination of numbers and letters) with message_id (the message ID generated by Telegram, which is an integer).

➡️ Format (optional)

Option only visible during editing. Displays text with or without formatting, meaning it will show with or without expressions, HTML, Markdown, etc.

➡️ Web preview (optional)

If the message contains a link, this option enables or disables the web page preview.

➡️ Forwarded (optional)

Displays the message as forwarded. This option is only available when the message is forwarded and doesn’t include a keyboard.

➡️ Protect message (optional)

Prevents the user from copying or forwarding the message, or from taking screenshots or recording the screen.

➡️ Remove keyboard (optional)

Removes the previously existing bottom keyboard.

➡️ Send silently (optional)

Sends the message without sound.

3. Activate the action

  • Click ✅ Activate so the message will be sent when the action flow is executed.

What does the action return via its ID?

1. message_id

You can use it to edit or delete the message later. Example:

#ActionID.message_id#

Replace ActionID with the ID of this action (Send message).

2. dice (dice result)

If you send a dice emoji (🎲, 🎯, , 🎰), the action returns the result. Example:

#ActionID.dice#

Replace ActionID with the ID of this action (Send message).