Method Error - sendTextMessage

Unhandled rejection TypeError: app.sentTextMessage is not a function
14 minutes ago at eval (eval at (/app/app.js:678:72), :20:13)
14 minutes ago at processImmediate (internal/timers.js:461:21)
14 minutes ago From previous event:
14 minutes ago at eval (eval at (/app/app.js:678:72), :19:8)
14 minutes ago From previous event:
14 minutes ago at Object.registerAction (eval at (/app/app.js:678:72), :3:8)
14 minutes ago at /app/models/library.js:3183:51
14 minutes ago From previous event:
14 minutes ago at App.functionWrapper (/app/models/library.js:3179:16)
14 minutes ago at /app/models/library.js:444:38
14 minutes ago From previous event:
14 minutes ago at selectMessageType (/app/models/library.js:443:27)
14 minutes ago at sendMessage (/app/models/library.js:612:33)
14 minutes ago at runJourneyDetailsActions (/app/models/library.js:633:25)
14 minutes ago at /app/models/library.js:760:17

Hi Akshay,

The function name for sending a text message is sendTextMessage where as you seem to be using sentTextMessage.

You can check out the documentation and syntax here: https://docs.yellowmessenger.com/docs/developer/app/components/send-text-message

3 Likes