Class 'AudioMessage' not found
Closed this issue · 2 comments
Stacey940 commented
Hi ,
Thank you for this awesome SDK.
I am getting error when I try to send an audio message. It says Class 'AudioMessage' not found. The code I am using is :
$bot->send(new AudioMessage($id , 'http://somewebsite.com/fb_msg/audio/contest.mp3'));
HanafiAhmat commented
At the top of your file after vendor/autoload.php, did you add this line use pimax\Messages\AudioMessage;
?
Stacey940 commented
Oh sorry , yes, it worked. Thanks @HanafiAhmat