Closed alvinmurimi closed 6 years ago
Hi - you are using the old version of BotMan (1.5) but mix it with 2.0 code.
Please remove the 1.5 (The Mpociot
namespace references) from your code and update to version 2.x
Hi! Thank you for the suggestion but when i upgared to botman 2.1, i get this Uncaught Error: Class 'Botman\BotMan\BotManFactory not found
.All namespaces references are perfect but the code fails with that error. It forced me to downgrade.
I solved it. I had some few errors with the namespace case
I tried getting the URL of an image sent by the user to the bot so that i can pass it for other functions but i keep getting this error
Uncaught Error: Call to a member function getUrl()
and this other one/app/vendor/mpociot/botman/src/Mpociot/BotMan/BotMan.php(371): call_user_func_array(Object(Closure), Array)
Here is my code:When the bot receives an image, it fails to respond. What might be the problem?