# Send a message

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

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FQEWOv6004ojOXVomYZ9b%2F1.png?alt=media\&token=c541a3ab-c438-4574-91e1-17fdf6e075d6)

Or select the same action in the left additional menu:

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2F7k5xEa4ZWRSIO0eOYqAg%2F2.png?alt=media\&token=d6e5e9e5-2366-433d-9126-fca9c91a034f)

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

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FXxqhoaWThqs6gxrg2qpF%2F3.png?alt=media\&token=f1a94ce1-89b8-4178-9f91-3c3db4dcc92b)

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:

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FjrMiiyue7hKiM3PHgY7Q%2F4.png?alt=media\&token=4a98ede8-ebe4-49a9-8d85-3fba7937a38f)

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.*

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FxvJurg6Miup8sQlGZoFn%2F5.png?alt=media\&token=8279e2ac-d1d7-4fde-9e59-dda55de946bb)

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

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FEIE7UJyzFWRuXoJ4I6tC%2F6.png?alt=media\&token=481d7ba0-2296-414a-90f8-0d98a3eb9df7)

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

![Так выглядит прикрепление вложений через TG ](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FxIBNWGBIxqtAsjeNtH5r%2F7.png?alt=media\&token=d59ca12a-701c-4344-8a4c-03ca24af1420)

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:

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FdSGyyHQ78xlOKDv779XX%2F8.png?alt=media\&token=02929c92-ea37-40c4-afa7-029bddff3b16)

Our picture appeared in the list of block menu attachments:

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2Fq6RdutWtELmdnDdtiQaU%2F9.png?alt=media\&token=ca28cb86-02d4-4eb5-aa38-8f963d112d25)

### 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.

![Бот не будет ничего предпринимать, пока человек не напишет сообщение](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FAeqFFQNOzjGMgzebi1ii%2F10.png?alt=media\&token=f0e96b6b-5058-4a98-a896-2f125f0da190)

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.

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FjlSg3wnjlQDMmgzWgz0j%2F11.png?alt=media\&token=4c8d0f87-8613-48e0-803e-9ebafe9312b3)

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:

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FD2TbXs1CKr4YP8y0lva8%2F12.png?alt=media\&token=dce7c2cf-e008-4ae4-a29c-d1cc233f5c3e)

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

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FxtNo6BO7KSD60gHdII3R%2F13.png?alt=media\&token=d7fe651f-ae3e-4713-9c43-fd4a89b6595a)

And so in VKontakte:

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FvaiHBK9TtnfEF4deTGrz%2F14.png?alt=media\&token=97202a9d-5301-4b18-a927-ea5fc0e28bfd)

Now you know how to send messages to Smartbot Pro!
