Skip to content

Commit

Permalink
Fixed #1722
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Nov 8, 2019
1 parent aa5c503 commit d8d6863
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/OfficialAccount/Broadcasting/Client.php
Expand Up @@ -78,16 +78,18 @@ public function preview(array $message)
* Delete a broadcast.
*
* @param string $msgId
* @param int $index
*
* @return \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string
*
* @throws \EasyWeChat\Kernel\Exceptions\InvalidConfigException
* @throws \GuzzleHttp\Exception\GuzzleException
*/
public function delete(string $msgId)
public function delete(string $msgId, int $index = 0)
{
$options = [
'msg_id' => $msgId,
'article_idx' => $index,
];

return $this->httpPostJson('cgi-bin/message/mass/delete', $options);
Expand Down

0 comments on commit d8d6863

Please sign in to comment.