We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
probably something simple i'm doing wrong as i had it appear once(only once and i made no major changes afterwards which is strange).
i'm trying to get the text from the users message but the message object in bot.on(MessengerPlatform.Events.MESSAGE, function(userId, message)
message
bot.on(MessengerPlatform.Events.MESSAGE, function(userId, message)
returns: TextMessageEvent { getType: [Function], setType: [Function], getPageId: [Function], getTime: [Function], getUserId: [Function], getSenderId: [Function], getRecipientId: [Function], getTimestamp: [Function], toJSON: [Function], toString: [Function], isTextMessage: [Function], isQuickReply: [Function], hasAttachments: [Function], getMessageSeq: [Function], getMessageId: [Function], getText: [Function] }
TextMessageEvent { getType: [Function], setType: [Function], getPageId: [Function], getTime: [Function], getUserId: [Function], getSenderId: [Function], getRecipientId: [Function], getTimestamp: [Function], toJSON: [Function], toString: [Function], isTextMessage: [Function], isQuickReply: [Function], hasAttachments: [Function], getMessageSeq: [Function], getMessageId: [Function], getText: [Function] }
however using bot.getProfile(userId).then(function(data) and then echoing the message produces
bot.getProfile(userId).then(function(data)
{"sender":{"id":"XXXXXXXXXXXXXX"},"recipient":{"id":"XXXXXXXXXXXXXX"},"timestamp":1514505450956,"message":{"mid":"mid.XXXXXXXXXXXXXXXXXXXXXXX","seq":XXXX,"text":"hello"}}
any ideas on where i might be going wrong? sorry for the noob question im quite new to javascript/nodejs
The text was updated successfully, but these errors were encountered:
I sorry to slow reply, when you receive event MESSAGE can get message with function getText
MESSAGE
getText
Sorry, something went wrong.
No branches or pull requests
probably something simple i'm doing wrong as i had it appear once(only once and i made no major changes afterwards which is strange).
i'm trying to get the text from the users message but the
message
object inbot.on(MessengerPlatform.Events.MESSAGE, function(userId, message)
returns:
TextMessageEvent { getType: [Function], setType: [Function], getPageId: [Function], getTime: [Function], getUserId: [Function], getSenderId: [Function], getRecipientId: [Function], getTimestamp: [Function], toJSON: [Function], toString: [Function], isTextMessage: [Function], isQuickReply: [Function], hasAttachments: [Function], getMessageSeq: [Function], getMessageId: [Function], getText: [Function] }
however using
bot.getProfile(userId).then(function(data)
and then echoing the message produces{"sender":{"id":"XXXXXXXXXXXXXX"},"recipient":{"id":"XXXXXXXXXXXXXX"},"timestamp":1514505450956,"message":{"mid":"mid.XXXXXXXXXXXXXXXXXXXXXXX","seq":XXXX,"text":"hello"}}
any ideas on where i might be going wrong? sorry for the noob question im quite new to javascript/nodejs
The text was updated successfully, but these errors were encountered: