Commit eca442d8 by HanSon

修改例子的bug

1 parent cb792b29
......@@ -17,7 +17,7 @@ $robot = new Vbot([
]);
$robot->server->setMessageHandler(function ($message) {
if ($message->type === 'Text') {
if ($message instanceof Text) {
/** @var $message Text */
$contact = contact()->getUsernameById('hanson');
Text::send($contact, $message);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!