1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-02-03 13:22:19 +02:00
Vitaly the Alpaca (bot) 294bd2e77c Main build (Jenkins)
2024-10-15 10:50:56 +03:00

50 lines
940 B
Plaintext

---
sidebar_position: 12
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Set chat title
Sets new chat title
`Function SetChatTitle(Val Token, Val ChatID, Val Text) Export`
| Parameter | CLI option | Type | Description |
|-|-|-|-|
| Token | --token | String | Bot token |
| ChatID | --chatid | String, Number | Chat ID |
| Text | --text | String | Title text |
Returns: Map Of KeyAndValue - serialized JSON response from VK Teams
<br/>
:::tip
To call this method, the bot must be an administrator in the chat room.
Method at API documentation: [GET ​​/chats/setTitle](https://teams.vk.com/botapi/#/chats/get_chats_setTitle)
:::
<br/>
```bsl title="Code example"
Token = "001.3501506236.091...";
ChatID = "689203963@chat.agent";
Text = "New title";
Result = OPI_VKTeams.SetChatTitle(Token, ChatID, Text);
```
```json title="Result"
{
"ok": true
}
```