code: public function messages($startTime, $endTime, $msgId = 1, $number = 10000)
      {
          $params = [
                     'starttime' => is_numeric($startTime) ? $startTime : strtotime($startTime),
                     'endtime' => is_numeric($endTime) ? $endTime : strtotime($endTime),
                     'msgid' => $msgId,
                     'number' => $number,
                    ];
  
          return $this->parseJSON('json', [self::API_MSG_LIST, $params]);
      }
docs: 获取聊天记录.
  
  @param int $startTime
  @param int $endTime
  @param int $msgId
  @param int $number
  
  @return \EasyWeChat\Support\Collection