12 lines
175 B
Python
12 lines
175 B
Python
|
from pydantic import BaseModel
|
||
|
|
||
|
|
||
|
class CreateChatRequest(BaseModel):
|
||
|
name: str
|
||
|
|
||
|
|
||
|
class SendMessageRequest(BaseModel):
|
||
|
chat_id: int
|
||
|
sender_id: int
|
||
|
content: str
|