Show custom Div after sending status in botframework through javascript.

Paras Ravindran 1 Reputation point
2021-03-31T05:46:40.437+00:00

Hi

I am showing a custom div with a message when the user communicates with the bot.

I want to show it after sending state and hide it when bot shows a message.

currently i am using direct line.

      if (action.type === 'DIRECT_LINE/POST_ACTIVITY') {

        $('div.customMsg').show();
      }
      if (action.type === 'DIRECT_LINE/POST_ACTIVITY_FULFILLED') {
        $('div.customMsg').hide();
      }

but the div is displayed when the user message is in sending state.

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
746 questions
{count} votes