Hello, i have a fresh setup of laravel 10 and php-telegram-bot/laravel
longman/telegram-bot (0.81.0):
php-telegram-bot/laravel (v2.1.0):
In .env i provided api_key and username.
In web.php i tried to use this:
use PhpTelegramBot\Laravel\PhpTelegramBotContract;
Route::post('/webhook', function (PhpTelegramBotContract $telegramBot) {
return $telegramBot->handle();
});
But i have an error.
ReflectionException: Class "PhpTelegramBot\Laravel\PhpTelegramBotContract" does not exist in file D:\OpenServer\domains\aml-bot\vendor\laravel\framework\src\Illuminate\Routing\ResolvesRouteDependencies.php on line 81
In previous version (laravel 9 and php-telegram-bot/laravel v 2.0.3) i don`t have such errors. Please, help me.
Hello, i have a fresh setup of laravel 10 and php-telegram-bot/laravel
In .env i provided api_key and username.
In web.php i tried to use this:
use PhpTelegramBot\Laravel\PhpTelegramBotContract; Route::post('/webhook', function (PhpTelegramBotContract $telegramBot) { return $telegramBot->handle(); });
But i have an error.
ReflectionException: Class "PhpTelegramBot\Laravel\PhpTelegramBotContract" does not exist in file D:\OpenServer\domains\aml-bot\vendor\laravel\framework\src\Illuminate\Routing\ResolvesRouteDependencies.php on line 81
In previous version (laravel 9 and php-telegram-bot/laravel v 2.0.3) i don`t have such errors. Please, help me.