Group Members
Retrieve the members of a group chat with paginated results.
Endpoint
| Item | Description |
|---|---|
| URL | https://api-coco.typex.im/open/robot/group_members |
| Method | POST |
| Content-Type | application/json |
Request Headers
Authorization: Bearer <bot_token>
Content-Type: application/json
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
chat_id | string | Yes | Group chat session ID |
page | int | Yes | Page number |
page_size | int | Yes | Number of members to return per page |
Example
curl --location 'https://api-coco.typex.im/open/robot/group_members' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <bot_token>' \
--data '{
"chat_id": "1000000000000000000",
"page": 1,
"page_size": 100
}'
Response Format
{
"code": 0,
"data": {
"has_more": false,
"members": [
{
"name": "Alice Example",
"user_id": "1000000000000000001"
},
{
"name": "Bob Example",
"user_id": "1000000000000000002"
},
{
"name": "Carol Example",
"user_id": "1000000000000000003"
}
],
"page": 1,
"page_size": 100,
"total": 3
},
"msg": "ok"
}