Template
abstract class Template extends Attachment (View source)
Class Structured
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 | |
protected BaseCollection | $collections |
Methods
__construct($sender)
Structured constructor.
array
toData()
To array for send api
$this
add($elements)
Add elements
mixed
__call($name, $arguments)
No description
getCollections()
Get collection
$this
disableShare()
Disable share
mixed
collection()
Collection class name
Details
at line 39
__construct($sender)
Structured constructor.
at line 95
array
toData()
To array for send api
in Attachment at line 77
array
getPayload()
Get payload
in Attachment at line 89
$this
setPayload(array $payload)
Set Payload
in Attachment at line 100
$this
enableReuse()
Enable reuse
in Attachment at line 111
$this
disableReuse()
Disable reuse
in Attachment at line 124
$this
setAttachmentId($id)
Set attachment id
at line 54
$this
add($elements)
Add elements
at line 73
mixed
__call($name, $arguments)
at line 85
BaseCollection
getCollections()
Get collection
at line 110
$this
disableShare()
Disable share
at line 122
abstract protected mixed
collection()
Collection class name