Replace hardcoded '/api/telegram' with import.meta.env.BASE_URL + 'api/telegram' to match the reports API pattern. In production the base is '/roa2web/' so absolute paths bypassed IIS sub-app routing, causing 404 on generate-code endpoint. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>