littleshop/TeleBot/TeleBot/Handlers
SysAdmin 7e2d8e50db Fix: Prevent 'message not modified' error when browsing products
**Issue**: When users clicked "Browse Products" multiple times, Telegram API
rejected the edit request with "message is not modified" error, causing the
browse functionality to appear broken.

**Root Cause**: HandleBrowse method used EditMessageTextAsync directly, which
throws an exception when the message content is identical.

**Solution**:
- Replaced direct EditMessageTextAsync with SafeEditMessageAsync
- SafeEditMessageAsync catches ApiRequestException for "message is not modified"
- Silently handles duplicate edits without user-facing errors

**Testing**:
- Deployed to production (container: e1467c559ff6)
- Bot running as @Slukdevukbot with TOR enabled
- Categories API confirmed working (3 categories, 10 products)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-03 12:59:54 +01:00
..
CallbackHandler.cs Fix: Prevent 'message not modified' error when browsing products 2025-10-03 12:59:54 +01:00
CommandHandler.cs Fix TeleBot compilation errors - remove duplicate /review case 2025-09-24 15:18:33 +01:00
MessageHandler.cs Fix multiple TeleBot and admin panel issues 2025-09-24 15:04:24 +01:00