API
Orchestration
Virtual member orchestration APIs.
Auth: Authorization: Bearer sbot_…
GET
Bot Token/api/v1/bots/listChatVirtualMemberslistChatVirtualMemberslistChatVirtualMembers (Value-added Capability)
List dispatchable members in group. Requires bot to be active member; not open by default, apply via support.
- 必填 query:
chat_id(群会话 ID) - 可选 query:
limit(1-200,默认 50)、offset(≥0,默认 0) - 返回:
{ items: [{ virtual_user_id, name, username, avatar, joined_at }], pagination: { total, limit, offset } } - 403:能力未开通、机器人不在该群或会话非群聊
POST
Bot Token/api/v1/bots/simulateSendMessagesimulateSendMessagesimulateSendMessage (Value-added Capability)
Send text, photo, document, audio, video, or location messages in a group as a selected dispatchable member. Access requirements are the same as `listChatVirtualMembers`, and every call is recorded for compliance.
- Required for every message:
chat_idandvirtual_user_idfromlistChatVirtualMembers - Message type: optional
type, defaulttext; acceptstext,photo/image,document/file,audio,video, andlocation - Text:
textis required and must contain 1-1000 characters - Media:
file_idis required; optionalcaptionis limited to 1000 characters; useduration,width,height,performer,title, andthumbnail_urlwhere applicable - Location:
latitude(-90..90) andlongitude(-180..180) are required; optionalname(≤200) andaddress(≤500) - Optional for all types:
reply_to_message_id(≤128); obtain mediafile_idthrough upload credentials and the complete endpoint first - Returns: the same message object shape as the corresponding send endpoint
- 400: missing, unsupported, or invalid fields; 403: capability disabled / member not in group / member unavailable; 404: virtual member not found
