Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

twilio driver never send replies messages #7

Open
yossyrey opened this issue May 19, 2019 · 0 comments
Open

twilio driver never send replies messages #7

yossyrey opened this issue May 19, 2019 · 0 comments

Comments

@yossyrey
Copy link

yossyrey commented May 19, 2019

i just new using botman.
I have issue with twilio driver,
i just do all samples for twilio driver in docs, but seems it never send message to a number.

require_once 'vendor/autoload.php';
use BotMan\BotMan\BotMan;
use BotMan\BotMan\BotManFactory;
use BotMan\BotMan\Drivers\DriverManager;
$config = [
'twilio' => [
'token' => '####'
]
];
DriverManager::loadDriver(\BotMan\Drivers\Twilio\TwilioVoiceDriver::class);
DriverManager::loadDriver(\BotMan\Drivers\Twilio\TwilioMessageDriver::class);
$botman = BotManFactory::create($config);
$botman->hears('hello', function($bot) {
$bot->reply('Hello too');
});
$botman->fallback(function($bot) {
$bot->reply('Sorry, I did not understand these commands..');
});
$botman->listen();
no error, but it never send msg back to a number.
anyone can help, maybe give sample working for non laravel version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant