衬衫的颜色和价格似乎都是消息的字幕,但消息中只能有1个字幕。那么如何才能实现两个字幕呢?
这是我当前的消息tempalate
WHERE extension = '.dbf'
答案 0 :(得分:1)
您只能在消息本身添加新行,而不是标题或按钮或快速回复 对于前
messageData = {
recipient: {id: recipientId},
message: {
text: "Your First Line \n your second line",
metadata:"DEVELOPER_DEFINED_METADATA"
}};
答案 1 :(得分:1)
只需添加新元素。
"message":{
"attachment":{
"type":"template",
"payload":{
"template_type":"generic",
"elements":[
{
"title":"Classic T-Shirt",
"image_url":"<link>",
"subtitle":"Medium Grey %0D%0A s",
"buttons":[
{
"type":"web_url",
"url":"<link>",
"title":"View details"
},
{
"type":"postback",
"title":"Buy Now!",
"payload":"USER_DEFINED_PAYLOAD"
}
]
},
{
"title":"Classic T-Shirt",
"image_url":"<link>",
"subtitle":"Medium Grey %0D%0A s",
"buttons":[
{
"type":"web_url",
"url":"<link>",
"title":"View details"
},
{
"type":"postback",
"title":"Buy Now!",
"payload":"USER_DEFINED_PAYLOAD"
}
]
}
]
}
}
}