class Image extends Attachment (View source)

Class ImageMessage

Traits

Class Quickable

Constants

TYPE_IMAGE

Image type

TYPE_AUDIO

Audio type

TYPE_VIDEO

Video type

TYPE_FILE

File type

TYPE_LOCATION

Location type

TYPE_TEMPLATE

Template type

Properties

protected QuickReplyCollection $quicks from Quickable

Methods

__construct($sender, $image)

ImageMessage constructor.

mixed
getSender()

Get sender id

from Message
array
toData()

To array for send api

array
getPayload()

Get payload

$this
setPayload(array $payload)

Set Payload

$this
enableReuse()

Enable reuse

$this
disableReuse()

Disable reuse

$this
setAttachmentId($id)

Set attachment id

bootQuick()

Boot quick

from Quickable
$this
addQuick($quick)

No description

from Quickable
bool
isEmpty()

No description

from Quickable
array
makeQuickReply($data = [])

No description

from Quickable

Details

__construct($sender, $image)

ImageMessage constructor.

Parameters

$sender
$image

mixed getSender()

Get sender id

Return Value

mixed

array toData()

To array for send api

Return Value

array

array getPayload()

Get payload

Return Value

array

$this setPayload(array $payload)

Set Payload

Parameters

array $payload

Return Value

$this

$this enableReuse()

Enable reuse

Return Value

$this

$this disableReuse()

Disable reuse

Return Value

$this

$this setAttachmentId($id)

Set attachment id

Parameters

$id

Return Value

$this

bootQuick()

Boot quick

$this addQuick($quick)

Parameters

$quick

Return Value

$this

bool isEmpty()

Return Value

bool

array makeQuickReply($data = [])

Parameters

$data

Return Value

array