Closed mdevalk closed 6 years ago
@mdevalk Did you get an error or were you just looking at the source code?
These things are now equivalent in JavaScript:
const greeting = "HI THERE";
return { greeting: greeting };
// or return {"greeting": greeting}
const greeting = "HI THERE";
return { greeting };
I can confirm that it seems like it takes some time / retries for the greeting text to be updated and visible. In my experience the same goes for the getStarted button.
Closing due to inactivity
bot.setGreetingText didn't work for me. According to the messenger profile API docs objectkey "greeting" is required for the array.