sendToAll = false; $message->touser = array("abelzhu", "ShengbenZhu"); $message->toparty = array(1, 2, 1111, 3333); $message->totag= array(3, 4, 22233332, 33334444); $message->agentid = $agentId; $message->safe = 0; $message->messageContent = new NewsMessageContent( array( new NewsArticle( $title = "Got you !", $description = "Who's this cute guy testing me ?", $url = "https://work.weixin.qq.com/wework_admin/ww_mt/agenda", $picurl = "https://p.qpic.cn/pic_wework/167386225/f9ffc8f0a34f301580daaf05f225723ff571679f07e69f91/0", $btntxt = "btntxt" ), ) ); } $invalidUserIdList = null; $invalidPartyIdList = null; $invalidTagIdList = null; $api->MessageSend($message, $invalidUserIdList, $invalidPartyIdList, $invalidTagIdList); var_dump($invalidUserIdList); var_dump($invalidPartyIdList); var_dump($invalidTagIdList); } catch (Exception $e) { echo $e->getMessage() . "\n"; }