feat: ЛР 4 с хранением вложений в MinIO
This commit is contained in:
@@ -35,7 +35,9 @@ async def send(
|
||||
actor: User = Depends(current_user),
|
||||
messages: MessageService = Depends(message_service),
|
||||
) -> MessageOut:
|
||||
return MessageOut.from_domain(await messages.send(actor, chat_id, body.text, idempotency_key))
|
||||
return MessageOut.from_domain(
|
||||
await messages.send(actor, chat_id, body.text, body.attachment_ids, idempotency_key)
|
||||
)
|
||||
|
||||
|
||||
@router.get('', response_model=MessagePageOut)
|
||||
|
||||
Reference in New Issue
Block a user