Symfony\Component\Debug\Exception\FatalThrowableError : Argument 1 passed to TelegramBotBotsManager::__construct() must be of the type array, null given, called in \vendor\irazasyed\telegram-bot-sdk\src\Laravel\TelegramServiceProvider.php on line 65
at \vendor\irazasyed\telegram-bot-sdk\srcBotsManager.php:29
25| * TelegramManager constructor.
26| *
27| * @param array $config
28| */
29| public function __construct(array $config)
30| {
31| $this->config = $config;
32| }
33|
Exception trace:
1 TelegramBotBotsManager::__construct()
\vendor\irazasyed\telegram-bot-sdk\src\Laravel\TelegramServiceProvider.php:65
2 TelegramBot\Laravel\TelegramServiceProvider::TelegramBot\Laravel{closure}(Object(Illuminate\Foundation\Application), [])
\vendor\laravel\framework\src\Illuminate\Container\Container.php:799
Please use the argument -v to see more details.
The same issue for me
+1
for anyone struggling with this - don't forget to do artisan config:clear before requiring this package.
Most helpful comment
for anyone struggling with this - don't forget to do artisan config:clear before requiring this package.