\EasyWeChat\OfficialAccount\BroadcastingMessageBuilder

Class MessageBuilder.

Summary

Methods
Properties
Constants
message()
to()
toTag()
toUsers()
toAll()
build()
buildForPreview()
No public properties found
No constants found
No protected methods found
$to
$message
N/A
No private methods found
No private properties found
N/A

Properties

$to

$to : array

Type

array

Methods

to()

to(mixed  $to) : $this

Set target user or group.

Parameters

mixed $to

Returns

$this

toAll()

toAll() : $this

Returns

$this

build()

build(array  $prepends = array()) : array

Build message.

Parameters

array $prepends

Throws

\EasyWeChat\Kernel\Exceptions\RuntimeException

Returns

array

buildForPreview()

buildForPreview(string  $by, string  $user) : array

Build preview message.

Parameters

string $by
string $user

Throws

\EasyWeChat\Kernel\Exceptions\RuntimeException

Returns

array