-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Great to have PHP Wechaty onboard to our Multi-language Wechaty Community! #1
Comments
alpha version, start bot like $wechaty = \IO\Github\Wechaty\Wechaty::getInstance($token, $endPoint);
$wechaty->onScan(function($qrcode, $status, $data) {
$qr = \IO\Github\Wechaty\Util\QrcodeUtils::getQr($qrcode);
echo "$qr\n\nOnline Image: https://wechaty.github.io/qrcode/$qrcode\n";
})->onLogin(function(\IO\Github\Wechaty\User\ContactSelf $user) {
})->onMessage(function(\IO\Github\Wechaty\User\Message $message) {
$message->say("hello from PHP7.4");
})->start(); |
Awesome, great to see our PHP Wechaty for building a chatbot in 6 lines of PHP! It would be great if we could have a getting start repository like https://github.com/wechaty/python-wechaty-getting-started so that our PHP developers can be easy to get started! |
I create a getting start repository https://github.com/wechaty/php-wechaty-getting-started |
Awesome! Would love to play with it later, thank you very much for the efforts for making the pho getting start to be easy! |
Link to wechaty/wechaty#1927
The text was updated successfully, but these errors were encountered: