Lukas W.
Well-known member
Have you queried the bot with theFurther I get no messages via Telegram.
/start
command? It can't start sending you messages all by itself, you have to start the conversation.Have you queried the bot with theFurther I get no messages via Telegram.
/start
command? It can't start sending you messages all by itself, you have to start the conversation.BTW Is there a way to send test messages?
erver error log
ErrorException: [E_NOTICE] Undefined index: telegram_user_id src/addons/KL/TelegramBot/Service/Telegram.php:125
Generated by: Aysberg 31 Jan 2018 at 15:19
Stack trace
#0 src/addons/KL/TelegramBot/Service/Telegram.php(125): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/var/www/crymo....', 125, Array)
#1 src/addons/KL/TelegramBot/Pub/Controller/Account.php(11): KL\TelegramBot\Service\Telegram->addPendingUser()
#2 src/addons/KL/NotificationServiceFramework/Pub/Controller/Account.php(81): KL\TelegramBot\Pub\Controller\Account->_postSave('telegram')
#3 src/XF/Mvc/Dispatcher.php(249): KL\NotificationServiceFramework\Pub\Controller\Account->actionSave(Object(XF\Mvc\ParameterBag))
#4 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('KL\\Notification...', 'Save', 'html', Object(XF\Mvc\ParameterBag), '', Object(KL\TelegramBot\Pub\Controller\Account), NULL)
#5 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#6 src/XF/App.php(1880): XF\Mvc\Dispatcher->run()
#7 src/XF.php(328): XF\App->run()
#8 index.php(13): XF::runApp('XF\\Pub\\App')
#9 {main}
Request state
array(4) {
["url"] => string(37) "/xf/account/notification-service/save"
["referrer"] => string(49) "https://crymo.re/xf/account/notification-service/"
["_GET"] => array(1) {
["/xf/account/notification-service/save"] => string(0) ""
}
["_POST"] => array(2) {
["user"] => array(1) {
["kl_nsf_service_data"] => array(1) {
["service_id"] => string(8) "telegram"
}
}
["_xfToken"] => string(8) "********"
}
}
Delete
Changelog
Bugfixes & Changes
- A few assorted errors have been resolved.
- Now triggers notifications upon conversation invitation.
- Now triggers notification upon new conversations.
- Now triggers notification upon recieving a reply to a conversation.
ErrorException: [E_NOTICE] Undefined property: stdClass::$username src/addons/KL/TelegramBot/Service/Telegram.php:87
#0 src/addons/KL/TelegramBot/Service/Telegram.php(87): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/var/www/...', 87, Array)
#1 src/addons/KL/TelegramBot/Service/Telegram.php(75): KL\TelegramBot\Service\Telegram->processMessages(Array)
#2 src/addons/KL/TelegramBot/Cron/Telegram.php(8): KL\TelegramBot\Service\Telegram->reveiceMessages()
#3 [internal function]: KL\TelegramBot\Cron\Telegram::processReceivedMessages(Object(XF\Entity\CronEntry))
#4 src/XF/Job/Cron.php(35): call_user_func(Array, Object(XF\Entity\CronEntry))
#5 src/XF/Job/Manager.php(241): XF\Job\Cron->run(7.9999990463257)
#6 src/XF/Job/Manager.php(187): XF\Job\Manager->runJobInternal(Array, 7.9999990463257)
#7 src/XF/Job/Manager.php(76): XF\Job\Manager->runJobEntry(Array, 7.9999990463257)
#8 job.php(15): XF\Job\Manager->runQueue(false, 8)
#9 {main}
ErrorException: [E_NOTICE] Undefined property: stdClass::$text src/addons/KL/TelegramBot/Service/Telegram.php:86
Generated by: Unknown account Apr 14, 2018 at 09:51
Stack trace
#0 src/addons/KL/TelegramBot/Service/Telegram.php(86): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/var/www/vhosts...', 86, Array)
#1 src/addons/KL/TelegramBot/Service/Telegram.php(75): KL\TelegramBot\Service\Telegram->processMessages(Array)
#2 src/addons/KL/TelegramBot/Cron/Telegram.php(8): KL\TelegramBot\Service\Telegram->reveiceMessages()
#3 [internal function]: KL\TelegramBot\Cron\Telegram::processReceivedMessages(Object(XF\Entity\CronEntry))
#4 src/XF/Job/Cron.php(35): call_user_func(Array, Object(XF\Entity\CronEntry))
#5 src/XF/Job/Manager.php(241): XF\Job\Cron->run(7.9999988079071)
#6 src/XF/Job/Manager.php(187): XF\Job\Manager->runJobInternal(Array, 7.9999988079071)
#7 src/XF/Job/Manager.php(76): XF\Job\Manager->runJobEntry(Array, 7.9999988079071)
#8 job.php(15): XF\Job\Manager->runQueue(false, 8)
#9 {main}
I think this add-on deserves a little clean-up and rewrite. I'll tackle this as soon as I can, so it might need another month, but after that, it should work as expected again.
#0 src/addons/KL/TelegramBot/Service/Telegram.php(87): XF::handlePhpError(8, 'Undefined prope...', '/home/flyra/pub...', 87, Array)
#1 src/addons/KL/TelegramBot/Service/Telegram.php(75): KL\TelegramBot\Service\Telegram->processMessages(Array)
#2 src/addons/KL/TelegramBot/Cron/Telegram.php(8): KL\TelegramBot\Service\Telegram->reveiceMessages()
#3 [internal function]: KL\TelegramBot\Cron\Telegram::processReceivedMessages(Object(XF\Entity\CronEntry))
#4 src/XF/Job/Cron.php(36): call_user_func(Array, Object(XF\Entity\CronEntry))
#5 src/XF/Job/Manager.php(241): XF\Job\Cron->run(7.94195413589)
#6 src/XF/Job/Manager.php(187): XF\Job\Manager->runJobInternal(Array, 7.94195413589)
#7 src/XF/Job/Manager.php(76): XF\Job\Manager->runJobEntry(Array, 7.94195413589)
#8 job.php(15): XF\Job\Manager->runQueue(false, 8)
#9 {main}
array(4) {
["url"] => string(8) "/job.php"
["referrer"] => string(59) "https://.........../threads/tarom-discutii.45/page-788"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.