Update 2025-04-18 #75

Merged
skobkin merged 3 commits from update_20250418 into main 2025-04-18 18:43:35 +03:00
Owner

PR: Improve Text Formatting and Code Quality

Overview

This PR enhances the bot's text formatting capabilities and improves code quality across the codebase, making it more robust and maintainable.

Key Changes

1. Better Text Formatting

  • Improved how the bot handles special characters in messages
  • Enhanced the text escaping process to ensure all messages display correctly
  • Added logging to help track and debug formatting issues
  • This makes the bot's responses more reliable and consistent

2. More Reliable Message Parsing

  • Updated how the bot processes different message formats
  • Fixed issues with special characters in URLs and instructions
  • This ensures the bot correctly interprets and responds to user messages

3. Cleaner Code Structure

  • Standardized how we import and use the Telegram library
  • Removed redundant code that was no longer needed
  • Made the codebase more consistent and easier to maintain

Impact

These changes make the bot more reliable when handling formatted text and special characters. Users will experience fewer formatting issues in the bot's responses, and the code is now easier to maintain for future development.

# PR: Improve Text Formatting and Code Quality ## Overview This PR enhances the bot's text formatting capabilities and improves code quality across the codebase, making it more robust and maintainable. ## Key Changes ### 1. Better Text Formatting - Improved how the bot handles special characters in messages - Enhanced the text escaping process to ensure all messages display correctly - Added logging to help track and debug formatting issues - This makes the bot's responses more reliable and consistent ### 2. More Reliable Message Parsing - Updated how the bot processes different message formats - Fixed issues with special characters in URLs and instructions - This ensures the bot correctly interprets and responds to user messages ### 3. Cleaner Code Structure - Standardized how we import and use the Telegram library - Removed redundant code that was no longer needed - Made the codebase more consistent and easier to maintain ## Impact These changes make the bot more reliable when handling formatted text and special characters. Users will experience fewer formatting issues in the bot's responses, and the code is now easier to maintain for future development.
skobkin self-assigned this 2025-04-18 18:43:21 +03:00
Removing escapeMarkdownV1Symbols() in favor of escapeMarkdownV2Symbols(). (should fix #65)
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2d355caf75
skobkin deleted branch update_20250418 2025-04-18 18:43:35 +03:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
skobkin/telegram-ollama-reply-bot!75
No description provided.