Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook messenger API bot : "Typing bubble" " indicator bubble"

I've created a messenger bot, and some action that I perform can take some time. So in order to make the user wait I would like to display the "Indicator Bubble" (the one you see when the people you talk with are typing):

Typing bubble

Enter image description here

It is not defined in the Messenger API documentation how to do it, but it seems possible has they perform it when you hit "callBack" on their card.

How can I simulate this?

like image 901
Henri Chabrand Avatar asked Apr 27 '16 11:04

Henri Chabrand


1 Answers

It's now available into the messenger bot API via the Sender Action. You can find the documentation here.

It's just a post with an on or off value to display / hide the bubble indicator.

{
    "recipient":{
          "id":"USER_ID"
    },
    "sender_action":"typing_on" // typing_off
}
like image 84
Spope Avatar answered Oct 18 '22 18:10

Spope