class Text extends Message (View source)

Class TextMessage

Traits

Class Quickable

Properties

protected QuickReplyCollection $quicks from Quickable

Methods

__construct($sender, $message)

TextMessage constructor.

mixed
getSender()

Get sender id

from Message
array
toData()

To array for send api

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, $message)

TextMessage constructor.

Parameters

$sender
$message

mixed getSender()

Get sender id

Return Value

mixed

array toData()

To array for send api

Return Value

array

bootQuick()

Boot quick

$this addQuick($quick)

Parameters

$quick

Return Value

$this

bool isEmpty()

Return Value

bool

array makeQuickReply($data = [])

Parameters

$data

Return Value

array