mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-28 06:51:16 +08:00
Telegram's send_photo via URL has a ~5MB limit. Upscaled images from fal.ai's Clarity Upscaler often exceed this, causing 'Wrong type of web page content' or 'Failed to get http url content' errors. Fix: Add download-and-upload fallback in Telegram's send_image(). When URL-based send_photo fails, download the image via httpx and re-upload as bytes (supports up to 10MB file uploads). Also: convert print() to logger.warning/error in image sending path for proper log visibility (print goes to socket, invisible in logs).