Fix the bug in the telegram bot module
The chatbot module in the service desk has stopped working.
Service desk is written on yii2 (php7).
The Longman library is used to integrate with telegrams.
Symptoms.
When you turn to the webhod:
{"error":"Input is empty!","trace":"#0 [internal function]: app\marketplace\Tgbots\Api\v1\WebHookController->actionHandle(1) #1 app/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array) #2 app//vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array) #3 app//vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction(handle, Array) #4 app/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction(tgbots/v1/web-h..., Array) #5 app/vendor/yiisoft/yii2/base/Application.php(386): yii\web\Application->handleRequest(Object(yii\web\Request)) #6 app/web/index.php(26): yii\base\Application->run() #7 {main}","class":"Longman\TelegramBot\Exception\TelegramException"}
There are a lot of problems in the logs:
The message file for category app does not exist: app/messages/ru/app.php
03.02.2021 20:19