},
"id" : "1",
"unread" : 2,
- "last_message" : {...} // The last message in that chat
+ "last_message" : {...}, // The last message in that chat
+ "updated_at": "2020-04-21T15:11:46.000Z"
}
```
...
},
"id" : "1",
- "unread" : 0
+ "unread" : 0,
+ "updated_at": "2020-04-21T15:11:46.000Z"
}
```
},
"id" : "1",
"unread" : 2,
- "last_message" : {...} // The last message in that chat
+ "last_message" : {...}, // The last message in that chat
+ "updated_at": "2020-04-21T15:11:46.000Z"
}
]
```
`POST /api/v1/pleroma/chats/{id}/messages`
Parameters:
-- content: The text content of the message
+- content: The text content of the message. Optional if media is attached.
- media_id: The id of an upload that will be attached to the message.
-Currently, no formatting beyond basic escaping and emoji is implemented, as well as no
-attachments. This will most probably change.
+Currently, no formatting beyond basic escaping and emoji is implemented.
Returned data: