mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-09 07:16:04 +00:00
File messages from platforms like Telegram carry base64 data with an empty url. The unconditional from_file_url(me.url) call passed an empty string downstream, causing httpx to fail with "Request URL is missing an 'http://' or 'https://' protocol" when uploading to Dify. Mirror the existing Voice handling pattern: check base64 first, fall back to url. Applied in both the main message chain and the Quote path. Closes #2079 Co-authored-by: Junyan Qin <rockchinq@gmail.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>