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.
Telegram: guruhlar va kanallar
Guruh va kanallarning a'zolari, qo'shilish havolalari, forum mavzulari, sozlamalari va taklif havolalari.
Guruh va kanallar ham peer (manfiy id). Sozlamalar maydon-ma-maydon qo'llanadi — faqat yuborgan kalitlaringiz o'zgaradi.
Base URL: https://chatvendor.net/api/v1 · har javob {"success": true, "data": …}
GET
/channels/{id}/chats/{peer}/members
Group members
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
qquery · stringfilterquery · string: admins | bots | kicked | bannedlimitquery · integerJavob 200 · Peer[]
id integertype stringtitle stringusername stringphone string
curl https://chatvendor.net/api/v1/channels/1/chats/@username/members \
-H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
POST
/channels/{id}/chats/join
Join a group or channel
channels:write
Ruxsat: channels:write
Parametrlar
idpath · integermajburiyChannel id (from GET /channels)
So'rov tanasi (application/json)
linkstringmajburiyJavob 200 · Peer
id integertype stringtitle stringusername stringphone string
curl -X POST https://chatvendor.net/api/v1/channels/1/chats/join \
-H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
-H "Content-Type: application/json" \
-d '{"link":"…"}'
GET
/channels/{id}/chats/{peer}/topics
Forum topics of a supergroup
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 · Topic[]
id integertitle stringclosed booleanpinned booleanhidden booleanunread_count integertop_message integer
curl https://chatvendor.net/api/v1/channels/1/chats/@username/topics \
-H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
POST
/channels/{id}/chats/{peer}/topics
Create a forum topic
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)
titlestringmajburiyicon_colorintegericon_emoji_idintegerJavob 200 · Topic
id integertitle stringclosed booleanpinned booleanhidden booleanunread_count integertop_message integer
curl -X POST https://chatvendor.net/api/v1/channels/1/chats/@username/topics \
-H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
-H "Content-Type: application/json" \
-d '{"title":"…","icon_color":1,"icon_emoji_id":1}'
PATCH
/channels/{id}/chats/{peer}/topics/{topic}
Rename / close / hide / pin a topic
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
topicpath · integermajburiyTopic id
So'rov tanasi (application/json)
titlestringclosedbooleanhiddenbooleanpinnedbooleanJavob 200
OK
curl -X PATCH https://chatvendor.net/api/v1/channels/1/chats/@username/topics/42 \
-H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
-H "Content-Type: application/json" \
-d '[]'
PATCH
/channels/{id}/chats/{peer}/settings
Channel/supergroup switches (only the fields sent are applied)
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)
usernamestringsignaturesbooleanjoin_to_sendbooleanjoin_requestbooleanslowmodeinteger: 0 | 10 | 30 | 60 | 300 | 900 | 3600noforwardsbooleandiscussionstringreactionsstring"all" | "none" | ["👍", "❤"]
history_hiddenbooleanforumbooleanJavob 200 · Applied
applied string[]
curl -X PATCH https://chatvendor.net/api/v1/channels/1/chats/@username/settings \
-H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
-H "Content-Type: application/json" \
-d '[]'
GET
/channels/{id}/chats/{peer}/invite-links
Invite links of a group/channel
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 · InviteLink[]
link stringtitle stringrevoked booleanpermanent booleanrequest_needed booleanusage integerusage_limit integerexpire_date string (date-time)
curl https://chatvendor.net/api/v1/channels/1/chats/@username/invite-links \
-H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
POST
/channels/{id}/chats/{peer}/invite-links
Create an invite link
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)
titlestringexpirestring (date-time)usage_limitintegerrequest_neededbooleanJavob 200 · InviteLink
link stringtitle stringrevoked booleanpermanent booleanrequest_needed booleanusage integerusage_limit integerexpire_date string (date-time)
curl -X POST https://chatvendor.net/api/v1/channels/1/chats/@username/invite-links \
-H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
-H "Content-Type: application/json" \
-d '[]'