feat: logging on sending file error, refactoring

This commit is contained in:
2025-04-06 11:39:56 +04:00
parent 00522da68f
commit a81e692957
8 changed files with 50 additions and 46 deletions

View File

@@ -1,7 +1,8 @@
from datetime import datetime
from typing import Optional, List
from typing import Optional
from schemas.base import BaseSchema, OkMessageSchema
from schemas.user import UserSchema
# region Entities
@@ -33,6 +34,7 @@ class EditMessageSchema(BaseMessageSchema):
class MessageSchema(EditMessageSchema):
created_at: datetime
tg_sender: Optional[TgUserSchema]
crm_sender: Optional[UserSchema]
status: str
is_edited: bool
file: Optional[MessageFileSchema] = None