Page MenuHomePhabricator

Send daily article recommendation to subscribers
Closed, ResolvedPublic


Possibly a CRON job that runs daily in the wiki-subscription tool.

For all active accounts, fetch recommendations from the recommendation service and deliver them via email or telegram as configured in the wiki_subs table.

Priority is telegram bot atm. Drop email if it's any trouble.

TODO list from Jan 11
  • Refactor daily templates to have only 2 templates (text, html) and an object containing all the messages in english and spanish. Pass the right message to the template and use the message directly in the telegram bot
  • Add proper preview (image, title, summary) of rec articles to daily html template
  • Refactor how we include the bot so it doesn't have { polling: true } because that keeps the job process running indefinitely
  • Bring back and test the "hour" logic