BotMill / fb-botmill

A Java framework for building bots on Facebook's Messenger Platform.
MIT License
72 stars 26 forks source link

Getting Started #118

Closed tyanrv closed 7 years ago

tyanrv commented 7 years ago

Hello, i'm new in programming, so sorry maybe for this question. So i have did first 2 steps of Creating your Bot Definition, but on the third step when i create MyBotClass, i can't find in dependencies those classes: MessengerProfileApi, PersistentMenu, CallToActionNested, theServices, MessengerProfileApi. (version - 2.0.0-RC1)

tyanrv commented 7 years ago

ok, i work with version-1.2.1 and it's ok. But i have one more question how can i get messageid for incoming/delivered messages when i get Event?

aurasphere commented 7 years ago

Hi tyanrv, sorry for the late reply but I've been really busy lately.

In order to retrieve the incoming/delivered message IDs, you will have to register for Facebook message_echoes and message_deliveries callback. Once you have done that, for each message you send, you will get back an echo message and a delivery message inside the MessageEnvelope object and both of this will contain the message id (mids field).

tyanrv commented 7 years ago

Hi, that's ok. Yeah, you right, thanks for your help, we can close this issue.