Closed YoussefUSF closed 10 years ago
Are you using the latest code? Take a look to exampleFunctional.php
Looks more like you messed up, your $w is apparently not a WhatsProt object. Can you post the code you're trying to use?
thank you, i success made @mgp25 in exampleFunction.php i think its wrong, i found that the image sending should be followed up by poll
this is how it worked for me
$w->sendPresenceSubscription($target);
$w->sendMessageComposing($target);
$w->sendMessagePaused($target);
$w->sendMessageImage($target, $imagePath);
$w->pollMessages();
@shirioko i just gave a piece of code not the full code :D think and im sure that sendMessageImage function need to be followed by pollMessages();
In exampleFunctional.php that is inside of an infinite loop, so everytime it starts, it always poll messages.
@mgp25 oh, ok :+1: Thx for the info
every time i try to send photo it gave me this error
Fatal error: Call to a member function sendMessageImage() on a non-object in
the code $w->sendMessageImage($target, "demo/x3.jpg");