[Telegram] Notifications

[Telegram] Notifications 2.0.0 RC 4

No permission to download

Kruzya

Well-known member
@Danny88, thanks, i recheck everything you wrote.

@FaustVasea, You forgot send error. I can't say anything about this. 🤷‍♂️
But this plugin works correctly with default alert types (such as "user reacts your post"). Third-party alerts can't be guaranteed, but tried to support too.
This is reason why currently i change addon logic. In next version addon will have own optional templates for message. If template doesn't exists, he will fallback to Push templates. And if push template doesn't exists too, he will render default HTML template.
This should solve two problems:
  1. Escaped accents who doesn't render in Telegram. But only if addon has Telegram/Push template.
  2. Any possible problems with third-party alerts if addon has push template.
 

Danny88

Active member
I send messages to members via admin panel Communication > Alert Users and received this error



ErrorException: [E_WARNING] DOMDocument::loadHTML(): htmlParseEntityRef: no name in Entity, line: 1 in src/addons/SModders/TelegramNotifications/Service/HtmlPurifier.php at line 124

  1. XF::handlePhpError()
  2. DOMDocument->loadHTML() in src/addons/SModders/TelegramNotifications/Service/HtmlPurifier.php at line 124
  3. SModders\TelegramNotifications\Service\HtmlPurifier->stripAttributes() in src/addons/SModders/TelegramNotifications/Service/HtmlPurifier.php at line 79
  4. SModders\TelegramNotifications\Service\HtmlPurifier->purify() in src/addons/SModders/TelegramNotifications/Listener.php at line 54
  5. SModders\TelegramNotifications\Listener::SModders\TelegramNotifications\{closure}()
  6. call_user_func_array() in src/addons/SModders/TelegramCore/SubContainer/Telegram.php at line 238
  7. SModders\TelegramCore\SubContainer\Telegram->SModders\TelegramCore\SubContainer\{closure}()
  8. call_user_func_array() in src/addons/SModders/TelegramCore/SubContainer/Telegram.php at line 265
  9. SModders\TelegramCore\SubContainer\Telegram->SModders\TelegramCore\SubContainer\{closure}() in src/XF.php at line 479
  10. XF::asVisitor() in src/addons/SModders/TelegramCore/SubContainer/Telegram.php at line 277
  11. SModders\TelegramCore\SubContainer\Telegram->asVisitor() in src/addons/SModders/TelegramNotifications/Listener.php at line 57
  12. SModders\TelegramNotifications\Listener::entity_post_save()
  13. call_user_func_array() in src/XF/Extension.php at line 50
  14. XF\Extension->fire() in src/XF.php at line 718
  15. XF::fire() in src/XF/Mvc/Entity/Entity.php at line 1225
  16. XF\Mvc\Entity\Entity->save() in src/XF/Repository/UserAlert.php at line 141
  17. XF\Repository\UserAlert->insertAlert() in src/XF/Repository/UserAlert.php at line 111
  18. XF\Repository\UserAlert->alert() in src/XF/Job/UserAlert.php at line 45
  19. XF\Job\UserAlert->executeAction() in src/XF/Job/AbstractUserCriteriaJob.php at line 59
  20. XF\Job\AbstractUserCriteriaJob->run() in src/XF/Job/Manager.php at line 253
  21. XF\Job\Manager->runJobInternal() in src/XF/Job/Manager.php at line 195
  22. XF\Job\Manager->runJobEntry() in src/XF/Job/Manager.php at line 111
  23. XF\Job\Manager->runByIds() in src/XF/Admin/Controller/Tools.php at line 120
  24. XF\Admin\Controller\Tools->actionRunJob() in src/XF/Mvc/Dispatcher.php at line 350
  25. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 257
  26. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 113
  27. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
  28. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2184
  29. XF\App->run() in src/XF.php at line 391
  30. XF::runApp() in admin.php at line 13
 

Danny88

Active member
Anyone here got suddenly Telegram account removed? My account created under this addon showing "Deleted Account"
 
Top