class QuickReply extends Message (View source)

Class QuickReply

Constants

TYPE_TEXT

Text type

TYPE_LOCATION

Location type

Methods

__construct($title, $payload)

QuickReply constructor.

mixed
getSender()

Get sender id

from Message
array
toData()

To array for send api

$this
setLocation()

Set location quick reply

$this
setImage($image)

Set image url

Details

__construct($title, $payload)

QuickReply constructor.

Parameters

$title
$payload

mixed getSender()

Get sender id

Return Value

mixed

array toData()

To array for send api

Return Value

array

$this setLocation()

Set location quick reply

Return Value

$this

$this setImage($image)

Set image url

Parameters

$image

Return Value

$this