This Telegram bot will automatically download and send back your rss feeds for offline reading. The bot is working, but it needs a code refactor to make it easier to maintain/more readable.
- User sets [add|list|remove] his rss feed collection
- When
/givemethenewscommand is sent. Bot will then proceed to parse and download the entire articles, clean them and send them back as html attachment for offline reading.
Images will be converted to base64. Gifs are begin ignored.
- PHP >= 7.0
- CURL
- Composer
- SSL certificate (telegram bots can only talk to https domains)
- mv
conf.sample.phptoconf.php - Create your telegram bot and set its data on
conf.php - run
composer install - Add
cronjob.phpto your crontab (weekly) - Done, you may need to create cache folders and give them write perms, those are listed on config file
You can edit providers.php to add more css selectors that you want bot to remove from each article.
- Improve html sanitization (remove onmouseover, onclick, etc.. attributes)
