# VK Teams

Корпоративный мессенджер ВКонтакте — чаты, сообщения, файлы

## Scenarios

### Messages to a work chat
The agent writes as the bot straight into a VK Teams chat: a report, a reminder or an alert lands where the team already sits.

### Chat roster and moderation
The agent shows members, admins and join requests, adds or removes people and blocks anyone breaking the rules.

### Scheduled summary
The agent sends a summary to the chat you pick at the agreed time and pins it at the top so nobody hunts for it in the thread.

### Buttons and follow-up questions
The agent sends a message with buttons, handles the tap through a callback and edits the text once the answer is out of date.

## How to connect

### Sign in to VK Teams and find Metabot
The token comes from a service bot, not from an admin panel: type «Метабот» (Metabot) in the chat search and open the dialog. Sign in with the work account that will stay the bot owner — the owner cannot be changed later.

### Send the /newbot command to Metabot
It will ask for a name for the new bot. The name must end with bot, otherwise Metabot rejects it and asks for another one.

### Allow the bot to be added to chats
Send /setjoingroups to Metabot, then your bot's nick or id, then the word enable. Without this the bot stays in private dialogs only: it cannot be added to a group chat, and only a chat administrator may add it.

### Copy the token from Metabot's reply
The token arrives in a message right after creation and looks like 001.2659914704.0218887601:747432131 — four numeric blocks with dots and a colon. If the message is lost, send /token to Metabot.

## FAQ

### How do I connect VK Teams?
With a bot token. In VK Teams search for Metabot, send it the /newbot command and a name ending in bot, then copy the token from the reply. If the message gets lost, the /token command helps.

### What does the agent see in VK Teams?
The bot own data and the chats it has been added to: messages, the list of members, admins and blocked users, join requests, and information about files.

### Does the agent write in VK Teams?
Yes: it sends, edits and deletes messages, pins them, changes the chat title, description and rules, and adds or removes members.

### Why is the bot not allowed into a group chat?
By default the bot lives only in direct messages. Send Metabot /setjoingroups, the bot nickname and the word enable, and have a chat admin add the bot to the chat itself.

[Open VK Teams](https://teams.vk.com)
