WebSocket
Connect
Disconnect
create_chat
Member IDs (comma-separated; your id is added automatically)
Name (optional; null + 2 members → direct chat)
→ create_chat
For a DM you can skip this — just put the other user's id in send_message.
chat info (group/channel)
Chat ID (negative = group)
↳ last
Image
↑ upload & set image
🗑 delete image
Username (@handle)
set
clear
Find chat by username
→ find_chat
send_message
Chat ID — peer user id (direct), or −id (group)
↳ last
Text
→ send_message
send_file
File service base URL
Choose a file
1. Upload → get file_id
file_id
Chat ID — peer user id (direct), or −id (group)
↳ last
2. → send_file
⤓ download file_id
🗑 delete file_id
get_history
Chat ID — peer user id (direct), or −id (group)
↳ last
Limit
→ get_history
✓ mark_read (now)
✓ last msg
get_chats
→ get_chats
contacts
First name (required)
Last name (optional)
Phone number (required)
→ add
→ list
🗑 delete
avatar
Choose image
↑ upload & set my avatar
Show avatar for user_id (blank = me)
→ get_avatar_url
Raw JSON
→ send raw
Log
Clear