[Telegram] Notifications

[Telegram] Notifications 2.0.0 RC 4

No permission to download
@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.
 
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
 
Anyone here got suddenly Telegram account removed? My account created under this addon showing "Deleted Account"
 
Hi, @Kruzya !

I've installed both of your add-ons (Core & Notifications) and should say it's pretty much the functionality I've looked for.
I do hope there will no be much troubles with them and what is more important - I'd really like to wish you have a time to further develop add-ons since it's really a thing to have even for some $.

As a suggestion, it would be a great feature to send notifications to channels from selected forums (on topic creation, for example, kind a news spread).
 
As a suggestion, it would be a great feature to send notifications to channels from selected forums (on topic creation, for example, kind a news spread).
Something like this i already implemented for own usages. But code-reviewing required before creating a resource here.
Maybe on the weekend i'll see and publish here.
 
Top Bottom