fix: add missing Telegram tokens for DAARWIZZ, DRUID, GREENFOOD

Synced from NODA1 after 2026-02-03 incident fix.
All 9 agents now have tokens configured.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Apple
2026-02-03 07:26:56 -08:00
parent 6b54e0da6d
commit a0a89b577d
2 changed files with 21 additions and 14 deletions

View File

@@ -1771,22 +1771,20 @@ async def handle_telegram_webhook(
# Endpoints
# ========================================
# DAARWIZZ webhook endpoints (both paths for compatibility)
@router.post("/telegram/webhook")
async def telegram_webhook(update: TelegramUpdate):
"""
Handle Telegram webhook for DAARWIZZ agent.
Telegram update format:
{
"update_id": 123,
"message": {
"message_id": 456,
"from": {"id": 12345, "username": "alice"},
"chat": {"id": 12345, "type": "private"},
"text": "Hello!"
}
}
"""
"""Handle Telegram webhook for DAARWIZZ agent (default path)."""
try:
return await handle_telegram_webhook(DAARWIZZ_CONFIG, update)
except Exception as e:
logger.error(f"Error handling DAARWIZZ Telegram webhook: {e}", exc_info=True)
raise HTTPException(status_code=500, detail=str(e))
@router.post("/daarwizz/telegram/webhook")
async def daarwizz_telegram_webhook(update: TelegramUpdate):
"""Handle Telegram webhook for DAARWIZZ agent (agent-specific path)."""
try:
return await handle_telegram_webhook(DAARWIZZ_CONFIG, update)
except Exception as e: