From 4de90eff88dccfb500521031b535a6d738af41ce Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Fri, 19 Jul 2019 17:50:49 +0800 Subject: [PATCH] add clear --- wx/Message.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/wx/Message.php b/wx/Message.php index 29bbee4..ba0c967 100644 --- a/wx/Message.php +++ b/wx/Message.php @@ -116,6 +116,26 @@ class Message extends Miniprogarampage } + /** + * @param string $media_id + * @param string $thumb_media_id + * @param string $title + * @param string $description + * @return Result + * @throws \Exception + */ + public function sendVideoNews(string $media_id,string $thumb_media_id, string $title, string $description) + { + $this->msgData['msgtype'] = 'video'; + $this->msgData['video[media_id]'] = $media_id; + $this->msgData['video[thumb_media_id]'] = $thumb_media_id; + $this->msgData['video[title]'] = $title; + $this->msgData['video[description]'] = $description; + + return $this->sendKefuMsg(); + } + + /** * @param string $head_content * @param string $tail_content