telegrambot
telegrambot copied to clipboard
Telegrambot don't send notofications to Telegtam
When I open a ticket, GLPI shows the http: error 500, and in php-error.log file appears the record:
[2019-06-17 13:03:27] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in /var/www/glpi/inc/toolbox.class.php line 659 *** PHP Notice(8): Undefined index: telegram_username Backtrace : plugins/telegrambot/inc/user.class.php:52 plugins/telegrambot/inc/user.class.php:65 PluginTelegrambotUser::item_add_user() : PluginTelegrambotUser::item_update_user() inc/plugin.class.php:1112 call_user_func() inc/commondbtm.class.php:1361 Plugin::doHook() inc/auth.class.php:819 CommonDBTM->update() front/login.php:84 Auth->login()
Help me please to fix it.
Hi, did you set telegram_username in user account setup?
PHP 7.2, GLPI 9.4.5
2020-02-12 22:46:58] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in /var/www/glpi/inc/toolbox.class.php line 658 *** PHP Notice(8): Undefined index: telegram_username Backtrace : plugins/telegrambot/inc/user.class.php:67 : PluginTelegrambotUser::item_update_user() inc/plugin.class.php:1112 call_user_func() inc/commondbtm.class.php:1355 Plugin::doHook() inc/auth.class.php:819 CommonDBTM->update() front/login.php:84 Auth->login() {"user":"@glpi"}