Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Latest commit

 

History

History
74 lines (36 loc) · 1.09 KB

File metadata and controls

74 lines (36 loc) · 1.09 KB

Dialogflow\RichMessage\Payload

Extend:

Dialogflow\RichMessage\RichMessage

Methods

Name Description
create Create a new Payload instance.
payload Set the payload for a Payload.

Inherited methods

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.

Payload::create

Description

public static create (array $payload)

Create a new Payload instance.

Parameters

  • (array) $payload

Return Values

\Dialogflow\Response\Payload

Payload::payload

Description

public payload (array $payload)

Set the payload for a Payload.

Parameters

  • (array) $payload : containing the payload response content

Return Values