V
V
Vasily Petrov2017-09-17 16:43:34
Laravel
Vasily Petrov, 2017-09-17 16:43:34

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();

In response, silence (
Hook registered
I would appreciate any advice

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question