pimax/fb-messenger-php

Class 'AudioMessage' not found

Closed this issue · 2 comments

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'));

At the top of your file after vendor/autoload.php, did you add this line use pimax\Messages\AudioMessage; ?

Oh sorry , yes, it worked. Thanks @HanafiAhmat