I've created a simple chatbot webhook for messenger and it works. What I want to do is:
1. to hide react button near my image attachment I sent (because takes some space from it: https://prnt.sc/oszvak).
2. to set description for links, found in text, I send (ex: "Google" insted of "www.google.com").
========================================================================
What I tried:
1. I looked for in developer tools documentation, but I didn't find.
My json I use to send image attachment messages:
json_encode(array(
"recipient" => array(
"id" => $senderId
),
"message" => array(
"attachment" => array(
"type" => "image",
"payload" => array(
"url" => $url
)
)
)
))
2. I found on internet this format <link|description> (ex: <www.google.com|Google>). But messenger displays it all as plain text.
My json I use to send text messages:
json_encode(array(
"recipient" => array(
"id" => $senderId
),
"message" => array(
"text" => $message
)
)
))
========================================================================
Do you have any idea how to resolve these two points? If you need, ask for clarification.