Skip to content

AddMessageRequestDto

← Chat DTO

Body for POST Api/Message/AddMessage.

Поля

ПолеТипОбязательноеОписание
chatIdnumberда
contentsChatContentObjectDto[]даMessage body, one entry per block.
mentionsnumber[] | nullнетIds of the mentioned users.
parentMessageIdnumber | nullнетSet to answer an existing message in the thread.

Пример

json
{
  "chatId": 0,
  "contents": [],
  "mentions": [],
  "parentMessageId": 0
}