1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-29 22:27:42 +02:00
Files
OpenIntegrations/docs/en/md/VKTeams/Chat-management/Set-chat-title.mdx

50 lines
940 B
Plaintext
Raw Normal View History

2024-10-15 10:16:04 +03:00
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
---
2024-08-18 17:47:59 +03:00
sidebar_position: 12
---
# 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 |
2024-10-09 09:42:00 +03:00
Returns: Map Of KeyAndValue - serialized JSON response from VK Teams
2024-08-18 17:47:59 +03:00
<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"
2024-09-24 11:38:18 +03:00
Token = "001.3501506236.091...";
ChatID = "689203963@chat.agent";
2024-08-18 17:47:59 +03:00
Text = "New title";
Result = OPI_VKTeams.SetChatTitle(Token, ChatID, Text);
```
2024-10-15 09:53:37 +03:00
2024-08-18 17:47:59 +03:00
```json title="Result"
2024-08-18 21:41:41 +03:00
{
"ok": true
}
2024-08-18 17:47:59 +03:00
```