I want to send a custom message with this JSON:
{
"text":"Hello world!",
"type":"smart_reply",
"data":{
"from":"bot",
"options":[
{
"text":"Option 1",
"action":"text_reply"
},
{
"text":"Option 2",
"action":"text_reply"
},
{
"text":"Option 3",
"action":"text_reply"
},
{
"text":"Option 4",
"action":"text_reply"
}
]
}
}
After creating a custom message by
let message = messagesRepository.createCustomMessage(
withChannelId: self.channelId,
data: data
)
So we will never retrieve our data in JSON again, it’s gone completely or it cannot be parsed inside EkoChat.
message.data
is always null