Skip to main content

index/interfaces/CreateMessageResult.md

Result of creating a message via /v1/messages

T is the message type of the request: a comment and a chat message come back in different shapes (WrittenComment, SentChatMessage). createMessage infers it from options.type.

Type Parameters​

Type ParameterDefault type
T extends MessageTypeMessageType

Properties​

PropertyTypeDescription
messageCreatedMessageByType[T]The created message, as the backend answers it for that type