> For the complete documentation index, see [llms.txt](https://docs.smartbotpro.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.smartbotpro.io/scripts/actions/send-a-message.md).

# Send a message

Right-click on an empty area of ​​the screen and select the action "send message":

![](/files/n03Lfb3LNfRYlTMXbyJ5)

Or select the same action in the left additional menu:

![](/files/facUNJKI8HBthMOeEJkh)

The "Send message" block will appear, and its settings menu will open on the right:

![](/files/nMMxtHQLS12xY3RYdPAV)

In the block settings menu, you can give a unique name to the action block, enter the desired message text, add buttons and attachments, and select the next block.

### Attachments

You can attach to the sent message:&#x20;

* image&#x20;
* video&#x20;
* audio recording&#x20;
* a voice message&#x20;
* sticker&#x20;
* document&#x20;
* other files&#x20;

To do this, click on the paperclip icon to the right of the text input field:

![](/files/iQtlaqbGyFSj6ULqMiX5)

In the attachment download window that appears, select whether to download the file from your device or via social networks. net.&#x20;

*Please note: if your account in the social network is not linked to Smartbot PRO, then you first need to go through authorization.*

![](/files/HP9lHBVSK6OfXO9vpIsr)

In the second case, you need to write in the LAN of your bot (in VK or Telegram) a special command /sb:upload

![](/files/NUIvT7Lz570aqfxbcaks)

After that, your bot will enter attachment download mode. It remains only to send the files.

![Так выглядит прикрепление вложений через TG ](/files/PCvV81YrigkRGHO66o9k)

Uploaded files are available in the attachment selection window. Click on the one you need so that a check mark appears on the right, and click the "Add Files" button:

![](/files/dtl40ikYswf43b8znwI2)

Our picture appeared in the list of block menu attachments:

![](/files/tbXNY20HOyJAC3jjY586)

### Additional settings for the "Send message" action

In additional settings, you can enable waiting for a response from the user. In this case, the bot will not do anything until the person writes to him. You need to wait for a message if you ask the user a question or offer a choice.

![Бот не будет ничего предпринимать, пока человек не напишет сообщение](/files/dJf00R786sXgk0MQvnRV)

You can also set a timeout limit.&#x20;

Then a timer icon will appear on the block, and two ways to continue in the block menu: if the user managed to send a response and if the time has expired.

![](/files/dWLoAiSmeEJUpKuyeHFF)

If you check the "Disable global search" checkbox, the user will not be able to move from the current script chain to another one by writing a command of another chain.&#x20;

Don't forget that the bot always needs a message from the user to start working. So don't forget to bind actions to events:

![](/files/9VX8ms9EsrC16XU2RNCR)

This is how a possible message with an attachment in Telegram looks like:

![](/files/sTUVYeQFdRCtQClZfs8Z)

And so in VKontakte:

![](/files/2QChsc4BrFnMOO0FGW3K)

Now you know how to send messages to Smartbot Pro!
