Answer the question
In order to leave comments, you need to log in
How to run telegram bot laravel + botman.io?
Half a day I suffer and I can not understand what the problem is. If anyone has come across please let me know.
Here is the current code in handle()
$botman = BotManFactory::create([
'telegram_token' => env('TELEGRAM_TOKEN'),
]);
$botman->loadDriver(TelegramDriver::class);
$botman->hears('Hip', function ($bot) {
$bot->reply('Hello!');
})->driver([TelegramDriver::DRIVER_NAME]);
$botman->listen();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question