botman / botman/driver-twilio

twilio driver never send replies messages

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
12
Forks
17
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Research direction

Start with the non-Laravel setup shown in the issue, especially DriverManager::loadDriver(...), BotManFactory::create($config), and $botman->listen(). Trace the TwilioMessageDriver entry point and compare the documented sample with the configured token; done means a received message produces the expected reply without errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.