<?php

namespace App\Api\WechatHandlers;

use EasyWeChat\Kernel\Contracts\EventHandlerInterface;

class VoiceMessageHandler implements EventHandlerInterface
{

    public function handle($payload = null)
    {

        $payload->ToUserName;
        $payload->FromUserName;
        $payload->CreateTime;
        $payload->MsgId;

        $payload->MediaId;
        $payload->Format;
        $payload->Recognition;

        return '语音消息';
    }

}
