Message: create / textMessage (app -> client)

Back to overview

Confirm that the text message has been sent.

This message SHALL be sent by the app once the message has been stored in the app's database.

After this message has been sent, the app MUST attempt to send the message to the chat server. In doing so, there MUST be continuous updates of the message with the returned messageId in form of update/messages towards the client.

The client receiving this message MUST wake up the app recurrently until the message with the returned messageId has been updated to the state sent.

Acknowledgement

This message acknowledges:

Message Condition Error Codes
create/textMessage (client -> app)

(None)

Name Description
blocked

The recipient has been blocked in the app

internalError

An internal error occurred

Args

Field Description Type Optional Nullable
type

The receiver type

Allowed values: "me", "contact", "group", "distributionList"

String False False
id

The receiver identity

String False False

Data

Field Description Type Optional Nullable
messageId

The message id of the new message

String False False