Skip to content

1.0.9

Latest

Choose a tag to compare

@alex2276564 alex2276564 released this 19 Aug 15:46
· 7 commits to main since this release

Release: TelegramNotifier v1.0.9 πŸŽ‰

We're bringing you critical bug fixes and enhanced architecture! This release resolves major Telegram API issues and introduces smart update management. πŸ›οΈπŸ“±βœ¨

🚨 Critical Bug Fixes:

  • ❗ FIXED: Telegram API Parsing Errors: Completely resolved the critical "Bad Request: can't parse entities: Unexpected end tag at byte offset" error that was preventing message delivery. This was a major issue affecting users with product links in notifications!
  • πŸ“ Smart HTML-Safe Message Splitting: Implemented advanced algorithm that intelligently splits long messages without breaking HTML tags, especially <a> links. Your product links will now always work correctly!
  • πŸ” Background: The HTML functionality was originally introduced in v1.0.7 through PR #4, but due to insufficient review on my part, it contained this parsing bug that affected message delivery reliability.

πŸ†• New Features:

  • ⏰ Configurable Update Check Interval: You can now customize how often the module checks for updates (default: 12 hours). Set it to 1 hour for immediate notifications or 48 hours to reduce server load - it's entirely up to you!
  • πŸ—οΈ Typed Configuration Schema: Completely redesigned configuration system with strict type casting and better data integrity. We've moved away from relying on PrestaShop's database "magic" and now handle all type conversions explicitly and predictably. Your settings are now more reliable than ever!

πŸš€ Performance Improvements:

  • 🎯 Strict Type Casting: Configuration values are now properly cast to their intended types (int, bool, string) with bulletproof validation. No more surprises from automatic PrestaShop type conversions!
  • πŸ”„ Enhanced Caching System: Improved configuration caching with schema-based defaults for better performance and consistency.
  • πŸ“ Improved Configuration Validation: More robust validation prevents configuration inconsistencies and provides better error messages.

βš™οΈ Configuration Changes:

  • ⏰ New Setting: "Update Check Interval (hours)" - Control how frequently the module checks for new versions (1-999 hours, default: 12).

πŸ“₯ How to Update:

  1. Go to the Modules section in your PrestaShop admin panel.
  2. Enter the Settings of the TelegramNotifier module.
  3. Copy the current configuration values.
  4. Delete the TelegramNotifier module (select "Delete module files" when prompted).
  5. Refresh your browser page.
  6. Install the new version of the module.
  7. Paste the saved configuration values back into the settings.
  8. Configure the new "Update Check Interval" setting if desired.
  9. Click Save to apply the changes.

⚠️ Highly Recommended Update: If you've been experiencing failed message deliveries or Telegram API errors, this update will resolve those issues completely!

With TelegramNotifier v1.0.9, you'll enjoy more reliable message delivery and smarter update management! πŸš€

If you have any questions or encounter issues, please don't hesitate to open an issue on GitHub.


πŸ€– alex2276564: *Fun fact: About a year ago, I was prompting LLMs to write decent config caching code for this module, but they couldn't pull it off, so I ended up crafting it myself from scratch using my programming knowledge from good old programming books... Fast forward to today, and GPT-5 (high) just wrote code that's way better than mine and probably better than what's in any classic programming textbook! What am I getting at? Well... if something goes sideways with this version... well, the robot helped. πŸ˜… Jokes aside, the new architecture is solid β€” just keeping the vibe honest. πŸ€·β€β™‚οΈ