mominah commited on
Commit
b8a0141
·
verified ·
1 Parent(s): 6e37271

Update models.py

Browse files
Files changed (1) hide show
  1. models.py +6 -0
models.py CHANGED
@@ -1,6 +1,12 @@
1
  from pydantic import BaseModel, EmailStr, Field, validator
2
  from typing import List, Optional
3
 
 
 
 
 
 
 
4
  class ContactMessage(BaseModel):
5
  first_name: str = Field(..., min_length=1, max_length=50)
6
  last_name: str = Field(..., min_length=1, max_length=50)
 
1
  from pydantic import BaseModel, EmailStr, Field, validator
2
  from typing import List, Optional
3
 
4
+ class ChatIDOut(BaseModel):
5
+ chat_id: str
6
+
7
+ class MessageIn(BaseModel):
8
+ question: str
9
+
10
  class ContactMessage(BaseModel):
11
  first_name: str = Field(..., min_length=1, max_length=50)
12
  last_name: str = Field(..., min_length=1, max_length=50)