Create a chat by sending the first message to another user id.
(Use the other account page — it shows their id at the top.)
If you see Missing text or Missing to_user_id,
open DevTools → Network → click send_message → Payload and confirm the JSON includes:
{"to_user_id": 24, "text": "hi"}
User
If you see Missing peer_id, it means the app tried to load messages without knowing which user is open.
This code always sends {"peer_id": NUMBER}.