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: stikerlar, papkalar, Business, raw

Stiker to'plamlari, saqlangan GIF'lar, chat papkalari, Telegram Business va connector'ning har bir endpointiga o'tkazgich.

tg/{path} o'tkazgichi connector'ning har bir endpointini ochadi (Stars, sovg'alar, qo'ng'iroqlar, mini-ilovalar, botlar, maxfiy chatlar, xom TL metodlar): GET uchun channels:read, yozish uchun channels:write kerak. POST tg/raw {method, params} istalgan TL metodni nomi bilan chaqiradi.

Base URL: https://chatvendor.net/api/v1 · har javob {"success": true, "data": …}

GET /channels/{id}/stickers/sets Installed sticker sets

Ruxsat: channels:read

Parametrlar

idpath · integermajburiy

Channel id (from GET /channels)

Javob 200 · StickerSet[]

id stringtitle stringshort_name stringcount integerofficial booleananimated booleanemojis boolean

curl https://chatvendor.net/api/v1/channels/1/stickers/sets \
  -H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
GET /channels/{id}/stickers/sets/{name} Stickers of a set (each with a ref to send)

Ruxsat: channels:read

Parametrlar

idpath · integermajburiy

Channel id (from GET /channels)

namepath · stringmajburiy

Set short name

Javob 200 · StickerSetContents

set StickerSetstickers Media[]

curl https://chatvendor.net/api/v1/channels/1/stickers/sets/{name} \
  -H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
GET /channels/{id}/stickers/gifs Saved GIFs (each with a ref to send)

Ruxsat: channels:read

Parametrlar

idpath · integermajburiy

Channel id (from GET /channels)

Javob 200 · Media[]

type string: photo | image | document | video | video_note | voice | audio | sticker | gif | webpageref stringmime stringsize integerfile_name stringwidth integerheight integerduration numberemoji string

curl https://chatvendor.net/api/v1/channels/1/stickers/gifs \
  -H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
GET /channels/{id}/folders Chat folders

Ruxsat: channels:read

Parametrlar

idpath · integermajburiy

Channel id (from GET /channels)

Javob 200 · Folder[]

id integertitle stringemoticon stringinclude_peers integer[]exclude_peers integer[]

curl https://chatvendor.net/api/v1/channels/1/folders \
  -H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
POST /channels/{id}/folders Create a chat folder

Ruxsat: channels:write

Parametrlar

idpath · integermajburiy

Channel id (from GET /channels)

So'rov tanasi (application/json)

titlestringmajburiy
emoticonstring
includestring[]
excludestring[]
contactsboolean
non_contactsboolean
groupsboolean
broadcastsboolean
botsboolean
exclude_mutedboolean
exclude_readboolean
exclude_archivedboolean

Javob 200 · Folder

id integertitle stringemoticon stringinclude_peers integer[]exclude_peers integer[]

curl -X POST https://chatvendor.net/api/v1/channels/1/folders \
  -H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
  -H "Content-Type: application/json" \
  -d '{"title":"…"}'
PATCH /channels/{id}/folders/{folder} Edit a chat folder

Ruxsat: channels:write

Parametrlar

idpath · integermajburiy

Channel id (from GET /channels)

folderpath · integermajburiy

Folder id

Javob 200 · Folder

id integertitle stringemoticon stringinclude_peers integer[]exclude_peers integer[]

curl -X PATCH https://chatvendor.net/api/v1/channels/1/folders/42 \
  -H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
DELETE /channels/{id}/folders/{folder} Delete a chat folder

Ruxsat: channels:write

Parametrlar

idpath · integermajburiy

Channel id (from GET /channels)

folderpath · integermajburiy

Folder id

Javob 200

OK

curl -X DELETE https://chatvendor.net/api/v1/channels/1/folders/42 \
  -H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
GET /channels/{id}/business Telegram Business settings (hours, location, greeting/away, intro, quick replies)

Ruxsat: channels:read

Parametrlar

idpath · integermajburiy

Channel id (from GET /channels)

Javob 200 · Business

work_hours object|nulllocation object|nullgreeting object|nullaway object|nullintro object|nullquick_replies QuickReply[]

curl https://chatvendor.net/api/v1/channels/1/business \
  -H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
GET /channels/{id}/business/quick-replies Quick-reply shortcuts

Ruxsat: channels:read

Parametrlar

idpath · integermajburiy

Channel id (from GET /channels)

Javob 200 · QuickReply[]

id integershortcut stringcount integer

curl https://chatvendor.net/api/v1/channels/1/business/quick-replies \
  -H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
POST /channels/{id}/business/quick-replies Add a message to a quick-reply shortcut (Premium)

Ruxsat: channels:write

Parametrlar

idpath · integermajburiy

Channel id (from GET /channels)

So'rov tanasi (application/json)

shortcutstringmajburiy
textstringmajburiy

Javob 200

OK

curl -X POST https://chatvendor.net/api/v1/channels/1/business/quick-replies \
  -H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
  -H "Content-Type: application/json" \
  -d '{"shortcut":"…","text":"…"}'
POST /channels/{id}/business/quick-replies/{shortcut}/send Send a quick reply to a chat

Ruxsat: channels:write

Parametrlar

idpath · integermajburiy

Channel id (from GET /channels)

shortcutpath · integermajburiy

Shortcut id

So'rov tanasi (application/json)

peerstringmajburiy

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/1/business/quick-replies/42/send \
  -H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
  -H "Content-Type: application/json" \
  -d '{"peer":"…"}'
POST /channels/{id}/business/links Create a business chat link (Premium)

Ruxsat: channels:write

Parametrlar

idpath · integermajburiy

Channel id (from GET /channels)

So'rov tanasi (application/json)

textstringmajburiy
titlestring

Javob 200 · BusinessLink

link stringslug stringtitle stringtext stringviews integer

curl -X POST https://chatvendor.net/api/v1/channels/1/business/links \
  -H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
  -H "Content-Type: application/json" \
  -d '{"text":"…","title":"…"}'
GET /channels/{id}/tg/{path} Passthrough to every connector endpoint (read): stars, gifts, calls, mini apps, secret chats, folders, stats… — see the connector catalogue in the docs

Ruxsat: channels:read

Parametrlar

idpath · integermajburiy

Channel id (from GET /channels)

pathpath · stringmajburiy

Connector path, e.g. stars, gifts/catalog, calls, chats/{peer}/call, secret, raw/methods

Javob 200

The connector response under data

curl https://chatvendor.net/api/v1/channels/1/tg/{path} \
  -H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
POST /channels/{id}/tg/{path} Passthrough to every connector endpoint (write): JSON body or multipart; POST tg/raw {method, params} calls any TL method

Ruxsat: channels:write

Parametrlar

idpath · integermajburiy

Channel id (from GET /channels)

pathpath · stringmajburiy

Connector path, e.g. gifts/send, dialogs/{peer}/todo, bot/send/{peer}, secret/{chat_id}/messages, raw

multipart/form-data — maydonlar yuqoridagi tavsifda.

Javob 200

The connector response under data

curl -X POST https://chatvendor.net/api/v1/channels/1/tg/{path} \
  -H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
  -F "file=@photo.jpg" -F "caption=…"