Releases: fabiosangregorio/telereddit
Releases · fabiosangregorio/telereddit
Lots of tests
NEW
- Added support for Imgur gallery images
- Better markdown escaping (Integrated python-telegram-bot's markdown escaping)
- Added docs. Documentation now lives at https://fabiosangregorio.github.io/telereddit/
BUGFIXES
- Fixed vreddit service bug
- Fixed bug where urls outside of reddit containing a r/ would be treated as subreddits.
- Fix bug where the exception sent as a message was not the one originally thrown
IMPROVEMENTS
- Refactored services for better exception handling in linker
- Refactored file structure
- Added lots of tests
- Added Design by Contract
- Added static type checking with mypy
- Added linting
- Added docstrings and docstrings linting
Code refactoring
NEW
- Complete code refactoring using classes and exceptions. This eliminates the need of multiple return values and decreases logical complexity.
- Made project a python module in order to be run with the
python -m telereddit
command - Add services-oriented paradigm to manage API providers for media retrieval, using authentication through API when needed.
- Add git-crypt for secrets management, adding secret into the repository and introducing per-environment secrets variables. Set the
TELEREDDIT_MACHINE
environment variable to enable this feature. (Note: dev, github and prod secrets are crypted in the repository and accessible only through a private GPG key. Use the generic secret to run the project) - Migrate CI/CD from Travis CI to Gtihub Workflow.
BUGFIXES
- Fix bug where r/imadeamistake would send the post twice
- Fix bug where some r/Eyebleach posts would fail to send
- Fix bug where some posts would be sent as a photo instead of gif
python-telegram-bot v12.2.0
NEW
- Migrated to [email protected]
IMPROVEMENTS
- Improved distinction between the post title and body
BUGFIXES
- Fix bug where edit keyboard would change subreddit if post was a crosspost
Choose result
NEW
- Thanks to the new inline keyboard, when submitting a subreddit you can now choose which post will be sent to the chat, send another post or delete it
- Added support for reddit.app.link deep links
IMPROVEMENTS
- Improved imgur gifs quality
BUGFIXES
- Fixed regression bug where /r/subreddit links would not work
- Fixed bug where texts with underscores would break the markdown of the post
- Fixed bug where crosspost links would not work
python-telegram-bot
NEW
- Switch Telegram API from telepot to python-telegram-bot
redd.it URLs
NEW
- Bot will now retrieve posts from redd.it URLs
BUGFIXES
- Fixed bug where a post from a link would not get sent if there was text before the url
OTHER
- Introduced code testing
- Removed Chatbase integration
v.redd.it media now supported
NEW
- Added support for v.redd.it medias
BUGFIXES
- Fixed bug where some unknown subreddit would cause an exception
Auto retry
IMPROVEMENTS
- If sending a random post fails, now telereddit retries automatically to send another random post from that subreddit
BUGFIXES
- Fixed bug where some external urls would be seen as subreddits
- Fixed some bugs here and there
Bugfixes
BUGFIXES
- Fixed bug where "Link to post" would have the URL of the media instead of the post
- Fixed bug where som imgur images would have a URL that would cause an exception
- Fixed bug where .gifv gifs would be sent as images instead of videos
- Fixed bug where some subreddits would return always the same post from random.json
Sentry integration
NEW
- Added Sentry integration for error tracking