\EasyWeChat\Work\MessageMessenger

Class MessageBuilder.

Summary

Methods
Properties
Constants
__construct()
message()
ofAgent()
toUser()
toParty()
toTag()
secretive()
send()
__get()
No public properties found
No constants found
setRecipients()
$message
$to
$agentId
$secretive
$client
N/A
No private methods found
No private properties found
N/A

Properties

$message

$message : \EasyWeChat\Kernel\Messages\Message;

Type

\EasyWeChat\Kernel\Messages\Message;

$to

$to : array

Type

array

$agentId

$agentId : integer

Type

integer

$secretive

$secretive : boolean

Type

boolean

Methods

send()

send(\EasyWeChat\Kernel\Messages\Message|string|null  $message = null) : mixed

Parameters

\EasyWeChat\Kernel\Messages\Message|string|null $message

Throws

\EasyWeChat\Kernel\Exceptions\RuntimeException
\EasyWeChat\Kernel\Exceptions\InvalidArgumentException

Returns

mixed

__get()

__get(string  $property) : mixed

Return property.

Parameters

string $property

Throws

\EasyWeChat\Kernel\Exceptions\InvalidArgumentException

Returns

mixed

setRecipients()

setRecipients(array|string  $ids, string  $key) : \EasyWeChat\Work\Message\Messenger

Parameters

array|string $ids
string $key

Returns

\EasyWeChat\Work\Message\Messenger