fix: enable multimodal processing by removing early message check
- Commented out early 'if not update.message' validation at line 723 - This was preventing photo and voice messages from being processed - process_photo() and process_voice() functions are already implemented - Now photo/voice updates can reach multimodal handlers before text validation - Fixes issue where bots showed placeholder messages instead of processing media
This commit is contained in:
@@ -720,8 +720,10 @@ async def handle_telegram_webhook(
|
|||||||
Returns:
|
Returns:
|
||||||
Dict з результатом обробки
|
Dict з результатом обробки
|
||||||
"""
|
"""
|
||||||
if not update.message:
|
# Allow updates without message if they contain photo/voice
|
||||||
raise HTTPException(status_code=400, detail="No message in update")
|
# The actual message validation happens after multimodal checks
|
||||||
|
# if not update.message:
|
||||||
|
# raise HTTPException(status_code=400, detail="No message in update")
|
||||||
|
|
||||||
# Extract message details
|
# Extract message details
|
||||||
from_user = update.message.get("from", {})
|
from_user = update.message.get("from", {})
|
||||||
|
|||||||
Reference in New Issue
Block a user