# Hide messages from attached buttons in chats

**URL:** <https://forums.rocket.chat/t/hide-messages-from-attached-buttons-in-chats/16196>\
**Category:** Community Support\
**Created:** [March 13, 2023, 7:50am UTC](https://forums.rocket.chat/t/hide-messages-from-attached-buttons-in-chats/16196 "2023-03-13T07:50:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vyacheslav](https://avatars.discourse-cdn.com/v4/letter/v/b9e5f3/32.png) [@Vyacheslav](https://forums.rocket.chat/u/Vyacheslav)\
**Post date:** [March 13, 2023, 7:50am UTC](https://forums.rocket.chat/t/hide-messages-from-attached-buttons-in-chats/16196/1 "2023-03-13T07:50:08Z")

</div>

How to hide text which send as action to click on attachments chat buttons like:

```auto
"attachments": [
    {
      "actions": [
        {
          "type": "button",
          "text": "Btn1 Title",
          "msg": "Btn1 message",
          "msg_in_chat_window": true
        },
...

```

In this case when user click on button **Btn1 Title** i receive in chat window “Btn1 message”. Is it possible to hide this text for chat?  
Tried to set **msg\_in\_chat\_window** to false, but in this case button interface maked hidden.
