Telegram-bot-sdk: Post installation issue

Created on 11 Jun 2020  路  4Comments  路  Source: irazasyed/telegram-bot-sdk

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.

Most helpful comment

for anyone struggling with this - don't forget to do artisan config:clear before requiring this package.

All 4 comments

The same issue for me

+1

for anyone struggling with this - don't forget to do artisan config:clear before requiring this package.

  1. composer remove irazasyed/telegram-bot-sdk
  2. php artisan config:cache
  3. composer require irazasyed/telegram-bot-sdk
Was this page helpful?
0 / 5 - 0 ratings

Related issues

b10585 picture b10585  路  4Comments

YaroslavStrigun picture YaroslavStrigun  路  4Comments

behnamazimi picture behnamazimi  路  4Comments

hafezd picture hafezd  路  3Comments

wlinh picture wlinh  路  3Comments