Ejemplo n.º 1
0
function send_message($uid, $msg, SendOptions $options = null)
{
    if ($options == null) {
        $options = new SendOptions();
    }
    raw_send_message($uid, $msg, $options->json());
}
Ejemplo n.º 2
0
function processTask(array $data = null)
{
    send_message($data['uid'], $data['message'], SendOptions::fromJson($data['opt']));
}