Dialogflow\RichMessage\RichMessage
Name | Description |
---|---|
create | Create a new Payload instance. |
payload | Set the payload for a Payload. |
Name | Description |
---|---|
doesSupportRichMessage | Check if request source support rich message. |
fallbackText | Alias of setFallbackText() to fit more inline with text(), button(), image(), etc. |
getFallbackText | Get the fallback text. |
render | Render response as array. |
setFallbackText | Set the fallback text if a request source doesn't support rich messages. |
Description
public static create (array $payload)
Create a new Payload instance.
Parameters
(array) $payload
Return Values
\Dialogflow\Response\Payload
Description
public payload (array $payload)
Set the payload for a Payload.
Parameters
(array) $payload
: containing the payload response content
Return Values