title: Microsoft Bot Famework - Webchat - event
body: <p>Using botframework V4 - NodeJS - React Webchat V4</p>
  
  <p>I am trying to send a message to bot, similar to a button click event in adaptive card. whenever a button is clicked in adaptive card i can see an event similar to below getting generated in the webchat</p>
  
  <pre><code>  type: 'WEB_CHAT/SEND_POST_BACK',
    payload: { value: {mytext: "myvalue"} }
  </code></pre>
  
  <p>Tried to send below dispatch message from the webchat on a custom button click, most of the time it is working and sometimes it wont send the message to bot. So i would like to know if this is the right approach or not. I can use WEB_CHAT/SEND_MESSAGE similar to below example</p>
  
  <p><a href="https://github.com/microsoft/BotFramework-WebChat/tree/master/samples/04.api/d.post-activity-event" rel="nofollow noreferrer">https://github.com/microsoft/BotFramework-WebChat/tree/master/samples/04.api/d.post-activity-event</a></p>
  
  <p>but this is displaying the message on the chat window, i don't want to display the message that is sent to bot in my chat window.</p>
  
  <pre><code>this.store.dispatch({
    type: 'WEB_CHAT/SEND_POST_BACK',
    payload: { value: {buttonClick: "mytext", scanText: myvalue} }
  });
  </code></pre>