Asosiy qismga o'tish
ChatVendor ChatVendor

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

Ruxsat: channels:read

Parametrlar

idpath · integermajburiy

Channel id (from GET /channels)

peerpath · stringmajburiy

Telegram peer: numeric id (channels/groups negative, e.g. -1001234567890), @username or phone

qquery · string
filterquery · string: admins | bots | kicked | banned
limitquery · integer

Javob 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

Ruxsat: channels:write

Parametrlar

idpath · integermajburiy

Channel id (from GET /channels)

So'rov tanasi (application/json)

linkstringmajburiy

Javob 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

Ruxsat: channels:read

Parametrlar

idpath · integermajburiy

Channel id (from GET /channels)

peerpath · stringmajburiy

Telegram 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

Ruxsat: channels:write

Parametrlar

idpath · integermajburiy

Channel id (from GET /channels)

peerpath · stringmajburiy

Telegram peer: numeric id (channels/groups negative, e.g. -1001234567890), @username or phone

So'rov tanasi (application/json)

titlestringmajburiy
icon_colorinteger
icon_emoji_idinteger

Javob 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

Ruxsat: channels:write

Parametrlar

idpath · integermajburiy

Channel id (from GET /channels)

peerpath · stringmajburiy

Telegram peer: numeric id (channels/groups negative, e.g. -1001234567890), @username or phone

topicpath · integermajburiy

Topic id

So'rov tanasi (application/json)

titlestring
closedboolean
hiddenboolean
pinnedboolean

Javob 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)

Ruxsat: channels:write

Parametrlar

idpath · integermajburiy

Channel id (from GET /channels)

peerpath · stringmajburiy

Telegram peer: numeric id (channels/groups negative, e.g. -1001234567890), @username or phone

So'rov tanasi (application/json)

usernamestring
signaturesboolean
join_to_sendboolean
join_requestboolean
slowmodeinteger: 0 | 10 | 30 | 60 | 300 | 900 | 3600
noforwardsboolean
discussionstring
reactionsstring

"all" | "none" | ["👍", "❤"]

history_hiddenboolean
forumboolean

Javob 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 '[]'
POST /channels/{id}/chats/{peer}/invite-links Create an invite link

Ruxsat: channels:write

Parametrlar

idpath · integermajburiy

Channel id (from GET /channels)

peerpath · stringmajburiy

Telegram peer: numeric id (channels/groups negative, e.g. -1001234567890), @username or phone

So'rov tanasi (application/json)

titlestring
expirestring (date-time)
usage_limitinteger
request_neededboolean

Javob 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 '[]'