ButtonTemplate
class ButtonTemplate extends Template (View source)
Class ButtonTemplate
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, string $text = '', array $elements = [])
Button constructor.
array
toData()
To array for send api
mixed
collection()
Get button collection
setText(string $text)
Set text
string
getText()
Get text
Details
at line 32
__construct($sender, string $text = '', array $elements = [])
Button constructor.
at line 46
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
at line 83
protected mixed
collection()
Get button collection
at line 61
ButtonTemplate
setText(string $text)
Set text
at line 73
string
getText()
Get text