Spaces:
Running

axeronis commited on
Commit
2cc83d8
·
1 Parent(s): 36378a5

HOTFIX: remove local Message import that shadowed global import causing crash

Browse files
Files changed (1) hide show
  1. backend/app/api/webhook.py +1 -1
backend/app/api/webhook.py CHANGED
@@ -683,7 +683,7 @@ async def telegram_webhook(
683
  )
684
 
685
  # SAVE to conversation history so AI knows what was said
686
- from app.models.lead import Message
687
  welcome_msg = Message(
688
  conversation_id=conversation.id,
689
  sender_type="ai",
 
683
  )
684
 
685
  # SAVE to conversation history so AI knows what was said
686
+ # Note: Message is already imported at top of file
687
  welcome_msg = Message(
688
  conversation_id=conversation.id,
689
  sender_type="ai",