https://discord.gg/botpress logo
Cards: restore payload.type='postback'
# 👀feature-requests
w
The
event.payload
is changed:
Copy code
ts
 type:"text"
 text:"DETAIL"
 value:"postback-action"
and now in text there is the button label 👍 and the postback is in value 👍 . I don't understand why
type
has changed to
text
. It would be better if it remained as
postback
as before.
p
It would be better if it remained as postback as before.
Thanks for you feedback! Why do you think it would be better?
w
Hi Chris and Happy quarter century! 😃 The card and carousel, as well as possibly other cards, send a payload, but the user can also write a response. So, if I need to test whether it is user text or a payload, it's simpler to check the type instead of checking if value exists and is not empty. In general, when the bot receives a message, the payload
type
should be text for all user input, while should be payload for actions when an option is selected
2 Views