Messenjer API
Panel ulangan Telegram, WhatsApp yoki Instagram akkaunt bilan qila oladigan hamma narsa — REST orqali: bitta kalit, bitta javob formati, bo'limma-bo'lim.
Instagram akkauntning Direct xabarlari, kommentga javoblar, storis javoblari va fayllari (ig_{id}).
Instagram akkauntlar GET /channels da ig_12 ko'rinishida; {peer} — sizga yozgan odamning IGSID'i. Qatorlarda kind bor: comment | story_reply | story_mention. reply_to + public_reply=true kommentga ochiq javob beradi; aks holda komment yozganga birinchi xabar shaxsiy javob sifatida ketadi (7 kun).
Base URL: https://chatvendor.net/api/v1 · har javob {"success": true, "data": …}
GET
/channels/ig_{id}/dialogs
Instagram: Direct chats of the account (peer = IGSID; rows carry kind: comment | story_reply | story_mention)
channels:read
Ruxsat: channels:read
Parametrlar
idpath · integermajburiyChannel id (from GET /channels)
Javob 200 · Dialog[]
peer_id integertype stringtitle stringusername stringunread_count integerlast_message_at string (date-time)last_message_text string
curl https://chatvendor.net/api/v1/channels/ig_1/dialogs \
-H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
GET
/channels/ig_{id}/dialogs/{peer}/messages
Instagram: messages of a chat
channels:read
Ruxsat: channels:read
Parametrlar
idpath · integermajburiyChannel id (from GET /channels)
peerpath · stringmajburiyTelegram peer: numeric id (channels/groups negative, e.g. -1001234567890), @username or phone
Javob 200 · ChatMessage[]
id integerchat_id integersender_id integersender_name stringout booleandate string (date-time)text stringmedia objectreply_to integertopic_id integerbuttons object[][]
curl https://chatvendor.net/api/v1/channels/ig_1/dialogs/@username/messages \
-H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
POST
/channels/ig_{id}/dialogs/{peer}/messages
Instagram: send text or quick-reply buttons; reply_to + public_reply=true answers a comment row publicly, otherwise the first message to a commenter goes as a private reply
channels:write
Ruxsat: channels:write
Parametrlar
idpath · integermajburiyChannel id (from GET /channels)
peerpath · stringmajburiyTelegram peer: numeric id (channels/groups negative, e.g. -1001234567890), @username or phone
So'rov tanasi (application/json)
textstringbuttonsstring[]reply_tointegerpublic_replybooleanJavob 200 · ChatMessage
id integerchat_id integersender_id integersender_name stringout booleandate string (date-time)text stringmedia objectreply_to integertopic_id integerbuttons object[][]
curl -X POST https://chatvendor.net/api/v1/channels/ig_1/dialogs/@username/messages \
-H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
-H "Content-Type: application/json" \
-d '[]'
POST
/channels/ig_{id}/dialogs/{peer}/file
Instagram: send a file (multipart: file, caption, as=auto|document|voice)
channels:write
Ruxsat: channels:write
Parametrlar
idpath · integermajburiyChannel id (from GET /channels)
peerpath · stringmajburiyTelegram peer: numeric id (channels/groups negative, e.g. -1001234567890), @username or phone
multipart/form-data — maydonlar yuqoridagi tavsifda.
Javob 200 · ChatMessage
id integerchat_id integersender_id integersender_name stringout booleandate string (date-time)text stringmedia objectreply_to integertopic_id integerbuttons object[][]
curl -X POST https://chatvendor.net/api/v1/channels/ig_1/dialogs/@username/file \
-H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
-F "file=@photo.jpg" -F "caption=…"
POST
/channels/ig_{id}/dialogs/{peer}/read
Instagram: mark seen
channels:write
Ruxsat: channels:write
Parametrlar
idpath · integermajburiyChannel id (from GET /channels)
peerpath · stringmajburiyTelegram peer: numeric id (channels/groups negative, e.g. -1001234567890), @username or phone
Javob 200
OK
curl -X POST https://chatvendor.net/api/v1/channels/ig_1/dialogs/@username/read \
-H "Authorization: Bearer cv_live_xxxxxxxxxxxx"