You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-05-22 10:05:29 +02:00
60 lines
1.1 KiB
Plaintext
60 lines
1.1 KiB
Plaintext
---
|
|
sidebar_position: 5
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Get chat members
|
|
Gets the list of chat members
|
|
|
|
|
|
|
|
`Function GetChatMembers(Val Token, Val ChatID, Val Cursor = "") Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| Token | --token | String | ✔ | Bot token |
|
|
| ChatID | --chatid | String, Number | ✔ | Chat ID |
|
|
| Cursor | --cursor | String | ✖ | Next page marker from the previous request |
|
|
|
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from VK Teams
|
|
|
|
<br/>
|
|
|
|
:::tip
|
|
Method at API documentation: [GET /chats/getMembers](https://teams.vk.com/botapi/#/chats/get_chats_getMembers)
|
|
:::
|
|
<br/>
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
Token = "001.3501506236.091...";
|
|
ChatID = "AoLI0egLWBSLR1Ngn2w";
|
|
|
|
Result = OPI_VKTeams.GetChatMembers(Token, ChatID);
|
|
```
|
|
|
|
|
|
|
|
|
|
```json title="Result"
|
|
{
|
|
"members": [
|
|
{
|
|
"admin": true,
|
|
"userId": "1011893356"
|
|
},
|
|
{
|
|
"creator": true,
|
|
"userId": "bayselonarrend@openintegrations.bizml.ru"
|
|
},
|
|
{
|
|
"userId": "1011987091"
|
|
}
|
|
],
|
|
"ok": true
|
|
}
|
|
```
|