feat: creating chats for cards and clients, sending and deleting text messages
This commit is contained in:
32
external/chat/schemas.py
vendored
Normal file
32
external/chat/schemas.py
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
from typing import Optional
|
||||
from uuid import UUID
|
||||
|
||||
from schemas.base import BaseSchema
|
||||
|
||||
|
||||
# region Requests
|
||||
|
||||
class ExternalCreateGroupRequest(BaseSchema):
|
||||
title: str
|
||||
|
||||
|
||||
class ExternalCreateTopicRequest(BaseSchema):
|
||||
group_id: str
|
||||
title: str
|
||||
icon_emoji_id: Optional[int] = None
|
||||
|
||||
|
||||
# endregion
|
||||
|
||||
# region Responses
|
||||
|
||||
class ExternalCreateGroupResponse(BaseSchema):
|
||||
tg_group_id: int
|
||||
group_id: UUID
|
||||
tg_invite_link: str
|
||||
|
||||
|
||||
class ExternalCreateTopicResponse(BaseSchema):
|
||||
tg_topic_id: int
|
||||
|
||||
# endregion
|
||||
Reference in New Issue
Block a user