GenericTemplate
class GenericTemplate extends Template (View source)
Class GenericTemplate
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 | from Template |
Methods
__construct($sender, $elements = [])
Generic constructor.
array
toData()
To array for send api
mixed
collection()
No description
Details
at line 26
__construct($sender, $elements = [])
Generic constructor.
at line 37
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
BaseCollection
getCollections()
Get collection