- hears and fallback WORKS fine both:
use App\Http\Controllers\BotManController;
use BotMan\BotMan\Messages\Conversations\Conversation;
$botman = resolve('botman');
$botman->hears('Начать', function($bot) {
$bot->startConversation(new OnboardingConversation);
}); //this works
$botman->fallback(function($bot) {
$bot->startConversation(new OnboardingConversation);
}); //this works
- inside group with VK driver hears NOT WORKS, but fallback WORKS:
use App\Http\Controllers\BotManController;
use BotMan\BotMan\Messages\Conversations\Conversation;
$botman = resolve('botman');
$botman->group(['driver' => [VkCommunityCallbackDriver::class]], function($botman) {
$botman->hears('Начать', function($bot) {
$bot->startConversation(new OnboardingConversation);
}); //this NOT works
$botman->fallback(function($bot) {
$bot->startConversation(new OnboardingConversation);
}); //this works
});
all I want to do - universal bot for VK and Telegram for example, but I need to check if user in blacklist in target platform, so if "Driver" is some similar to "MatchingMiddleware" from botman - I don't understand why hears not works inside of "Group", this is official example from website: official botman video tutorial screenshot
This example not works too: https://botman.io/2.0/receiving#command-groups-drivers
On VK Driver website there is no information about "Group": https://github.com/yageorgiy/botman-vk-community-callback-driver