You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?php
use App\Http\Controllers\BotManController;
use Mpociot\BotMan\Messages\Message;
use BotMan\BotMan\Messages\Attachments\File;
use BotMan\BotMan\Messages\Attachments\Image;
use GuzzleHttp\Client;
$botman = resolve('botman');
$botman->hears('hi', function ($bot) {
// $bot->typesAndWaits(2);
$bot->reply('Hello!');
});
$botman->hears('ok', function ($bot) {
// $bot->typesAndWaits(2);
// $some = $bot->getMessage()->getFiles();
$bot->reply('anything else!');
});
$botman->receivesFiles(function($bot, $files) {
foreach ($files as $file) {
$url = $file->getUrl(); // The direct url
$payload = $file->getPayload(); // The original payload
}
$bot->reply('file');
});
The text was updated successfully, but these errors were encountered:
I'm trying to implement Cisco Spark with Botman Studio 2.0. its replying
but when I try to hear any document file it give me errors here is full
here is my botman.php
The text was updated successfully, but these errors were encountered: