Facebook Messenger bot not sending messages in order

后端 未结 11 2102
遥遥无期
遥遥无期 2021-01-01 21:00

I\'m playing around with building a simple Facebook Messenger chatbot and I\'m having trouble sending messages in sequence.

In the example above, it should

11条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-01 21:36

    The message is not sending in order because, the request is sent asynchronously to facebook, and can be sent in any order.

    To solve this you have to call the next sendTextMessage when the message that should be sent before it has received a response.

提交回复
热议问题