Upload Image in Generic
Closed this issue · 1 comments
rekhacarillom commented
How can i add an image before the title('eg:First item') in this structured message?
$bot->send(new StructuredMessage($message['sender']['id'],
StructuredMessage::TYPE_GENERIC,
[
'elements' => [
new MessageElement("First item", "Item description", "", [
new MessageButton(MessageButton::TYPE_POSTBACK, 'First button'),
new MessageButton(MessageButton::TYPE_WEB, 'Web link', 'http://facebook.com')
]),
I wish to get the content like:an image ,title,description and then a button.
rekhacarillom commented
Hello,
I got it.Just need to give the image url after the 'Item Description'...Cool!