Attachment
abstract class Attachment extends Message (View source)
Class Attachment
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 |
Methods
__construct($sender, $type, array $payload = [])
Attachment constructor.
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
Details
at line 64
__construct($sender, $type, array $payload = [])
Attachment constructor.
at line 137
array
toData()
To array for send api
at line 77
array
getPayload()
Get payload
at line 89
$this
setPayload(array $payload)
Set Payload
at line 100
$this
enableReuse()
Enable reuse
at line 111
$this
disableReuse()
Disable reuse
at line 124
$this
setAttachmentId($id)
Set attachment id