Reply to a comment.

@param string $msgId
@param int    $index
@param int    $commentId
@param string $content

@return \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string
329559
public function reply(string $msgId, int $index, int $commentId, string $content)
    {
        $params = [
            'msg_data_id' => $msgId,
            'index' => $index,
            'user_comment_id' => $commentId,
            'content' => $content,
        ];

        return $this->httpPostJson('cgi-bin/comment/reply/add', $params);
    }
662302
protected function handle_publish($msgid=0)
    {
        if ($msgid) {
            $time = time();

            # QoS 1
            if (!$this->cmdstore->isEmpty(Message::PUBACK, $msgid)) {
                # resend PUBLISH with dup=1

                $wait = $this->cmdstore->getWait(Message::PUBACK, $msgid);

                if (empty($wait['retry_after']) || $wait['retry_after'] < $time) {
                    $rt = $wait['retry'];

                    $this->do_publish(
                        $rt['topic'],
                        $rt['message'],
                        $qos=1,
                        $rt['retain'],
                        $msgid,
                        1
                    );
                }
            }

            # QoS 2
            if (!$this->cmdstore->isEmpty(Message::PUBREC, $msgid)) {
                # resend PUBLISH with dup=1

                $wait = $this->cmdstore->getWait(Message::PUBREC, $msgid);
                if (empty($wait['retry_after']) || $wait['retry_after'] < $time) {
                    $rt = $wait['retry'];

                    $this->do_publish(
                        $rt['topic'],
                        $rt['message'],
                        $qos = 2,
                        $rt['retain'],
                        $msgid,
                        1
                    );
                }
            }

            # ??? 干掉?
            # 服务端在下发PUBLISH之后,客户端返回PUBREC,如果长时间客户端不发PUBREL,客户端是否需要重发PUBREC
            if (!$this->cmdstore->isEmpty(Message::PUBREL, $msgid)) {
                Debug::Log(Debug::DEBUG, 'handle_publish(): read PUBREL msgid=' . $msgid);

                $wait = $this->cmdstore->getWait(Message::PUBREC, $msgid);
                if (empty($wait['retry_after']) || $wait['retry_after'] < $time) {
                    # resend PUBREC
                    Debug::Log(Debug::INFO, 'Resend PUBREC msgid=' . $msgid);
                    $this->simpleCommand(Message::PUBREC, $msgid);
                }
            }

            if (!$this->cmdstore->isEmpty(Message::PUBCOMP, $msgid)) {
                Debug::Log(Debug::DEBUG, 'handle_publish(): read PUBCOMP msgid=' . $msgid);

                $wait = $this->cmdstore->getWait(Message::PUBCOMP, $msgid);
                if (empty($wait['retry_after']) || $wait['retry_after'] < $time) {
                    # resend PUBREL
                    Debug::Log(Debug::INFO, 'Resend PUBREL msgid=' . $msgid);
                    $this->simpleCommand(Message::PUBREL, $msgid);
                }
            }

        } else {

            $scan_items = array(
                Message::PUBACK,
                Message::PUBREC,
                Message::PUBREL,
                Message::PUBCOMP,
            );

            foreach ($scan_items as $s) {
                if (!$this->cmdstore->isEmpty($s)) {
                    $waits = $this->cmdstore->getWaits($s);

                    foreach ($waits as $msgid=>$detail) {
                        $this->handle_publish($msgid);
                    }
                }
            }
        }
    }
628389
public function indexComments($userId, EncodingParametersInterface $parameters)
    {
        $this->getLogger()->debug('Index user comments started.', [User::FIELD_ID => $userId]);

        $result = $this->indexRelationship($userId, User::REL_COMMENTS, $parameters);

        $this->getLogger()->debug('Index user comments completed.');

        return $result;
    }
1344796
function newComment($post_id, array $comment)
    {
        $params = array(1, $this->username, $this->password, $post_id, $comment);

        return $this->sendRequest('wp.newComment', $params);
    }
1012778
public int addReply(int conversationId, String text) {
		return getResourceFactory()
				.getApiResource("/conversation/" + conversationId + "/reply")
				.entity(new MessageCreate(text),
						MediaType.APPLICATION_JSON_TYPE)
				.get(MessageCreateResponse.class).getMessageId();
	}
924008
public function markAsRead(int $messageId)
    {
        $this->sql = 'update message set is_read = \'Y\' where id = ?';
        $this->bindValues[] = $messageId;

        return $this->execute();
    }
639322
def response(self, msgid, response):
        """"""
        self.requests[msgid].callback(response)
        del self.requests[msgid]
858367
public function createReply($commentId, $data)
    {
        if (!isset($data['image_id'], $data['comment'])) {
            throw new MissingArgumentException(['image_id', 'comment']);
        }

        return $this->post('comment/' . $commentId, $data);
    }
1235563
public function GetNew($DiscussionID, $LastCommentID) {
      $this->CommentQuery();
      $this->FireEvent('BeforeGetNew');
      $this->OrderBy($this->SQL);
      $Comments = $this->SQL
         ->Where('c.DiscussionID', $DiscussionID)
         ->Where('c.CommentID >', $LastCommentID)
         ->Get();
      
      $this->SetCalculatedFields($Comments);
      return $Comments;
   }
1208856
public function postComment(string $authorName, EmailAddress $authorEmail, string $content, IClock $clock): BlogArticleComment
    {
        InvalidOperationException::verify($this->published, 'This blog article is not published');
        InvalidOperationException::verify($this->allowCommenting, 'This blog article does not allow comments');

        $comment = new BlogArticleComment(
            $this,
            $authorName,
            $authorEmail,
            $content,
            $clock
        );

        $this->comments[] = $comment;

        return $comment;
    }
609742
public static function reply($discussionId, $content, $userId, $ipAddress)
    {
        $post = new static;

        $post->created_at = Carbon::now();
        $post->discussion_id = $discussionId;
        $post->user_id = $userId;
        $post->type = static::$type;
        $post->ip_address = $ipAddress;

        // Set content last, as the parsing may rely on other post attributes.
        $post->content = $content;

        $post->raise(new Posted($post));

        return $post;
    }
540185
public function unMarkComment($msg_data_id, $user_comment_id, $index = null) {
        $args = $this->getUnMarkComment()->parameters(
            compact('msg_data_id', 'user_comment_id', 'index'))->json();
        return $args['errcode'] == 0;
    }
23889
def reply(self, messageId, *messageParts):
        
        routingInfo = self._routingInfo.pop(messageId)
        self.send(routingInfo + [messageId, b''] + list(messageParts))
107757
public function editComment(
        CommentInterface $comment,
        $content
    ) {
        $comment->setContent($content);

        $this
            ->commentDirector
            ->save($comment);

        $this
            ->commentEventDispatcher
            ->dispatchCommentOnEditEvent($comment);

        return $this;
    }
970627
public function sendNews($id,$msgid)
	{
		$send_snoopy = new Snoopy; 
		$post = array();
		$post['tofakeid'] = $id;
		$post['type'] = 10;
		$post['token'] = $this->_token;
		$post['fid'] = $msgid;
		$post['appmsgid'] = $msgid;
		$post['error'] = 'false';
		$post['ajax'] = 1;
        $send_snoopy->referer = "https://mp.weixin.qq.com/cgi-bin/singlemsgpage?fromfakeid={$id}&msgid=&source=&count=20&t=wxm-singlechat&lang=zh_CN";
		$send_snoopy->rawheaders['Cookie']= $this->cookie;
		$submit = "https://mp.weixin.qq.com/cgi-bin/singlesend?t=ajax-response";
		$send_snoopy->submit($submit,$post);
		$this->log($send_snoopy->results);
		return $send_snoopy->results;
	}
456360
public function sendGraphTextByTag($tag_id, $media_id, $is_to_all = false, $send_ignore_reprint = 1, $clientmsgid = '')
    {
        $ret = array();
        $ret['filter']['tag_id'] = $tag_id;
        $ret['filter']['is_to_all'] = $is_to_all;
        $ret['msgtype'] = 'mpnews';
        $ret['mpnews']['media_id'] = $media_id;
        $ret['send_ignore_reprint'] = $send_ignore_reprint;
        $ret['clientmsgid'] = $clientmsgid;
        
        return $this->sendAll($ret);
    }
549751
function deleteComment($commentId)
    {
        $params = array(1, $this->username, $this->password, $commentId);

        return $this->sendRequest('wp.deleteComment', $params);
    }