-
Notifications
You must be signed in to change notification settings - Fork 643
Message builder
moznion edited this page Feb 18, 2017
·
4 revisions
As its name suggests, MessageBuilder
is the builder of message.
The client of Messaging API (i.e. instance of \LINE\LINEBot
) uses MessageBuilder
as parameter to send message. The client of Messaging API builds and encode a JSON string according to MessageBuilder
and send it as API request.
If you are an user of the client of Messaging API, you can treat MessageBuilder
as message itself. In other words, user of the client should just create a MessageBuilder
that corresponds to message and handle that as a parameter of the client.
The types of MessageBuilder
is following. Please refer phpdoc for details.