Open B00TK1D opened 1 year ago
Sending and receiving messages is done via web sockets.
Connect to wss://chat.jodel.com/connect?chat_id=xxx
In the request Header you have to include the Secret + Access Token. (Obtained via the details Endpoint - but im not sure anymore).
"X-Chat-Secret": secret, "Authorization": "Bearer " + accesstoken
Then you can send messages in this json format:
{"data":{"text":message}}
AFAIK messages are stored on the device itself and not on the server.
Issue
Has anyone had success in implementing the (somewhat) new chat functionality? I see and have been able to use the following endpoints to send a chat request and view the last message sent in the chat, but I can't find any endpoints to actually send chat messages.
I thought that
/v3/chat/{id}/details
might provide a transcript of the chat, but it only shows the last message sent. Anybody have any suggestions on the endpoint used to send chat messages?