VK Teams icon

VK Teams

Send and read data through the VK Teams Bot API

Chat → Set Avatar

AI-generated

Summary

Uploads an input binary image to set the avatar for a VK Teams chat. VK Teams checks whether the bot has permission to change the chat avatar.

Inputs

  • Chat ID (required) — ID of the chat whose avatar to set.
  • Input Binary Field (required) — Name of the incoming item’s binary field containing the image; defaults to data. The binary data must include a file name.

Output shape

A single item per input item, with the VK Teams API response in json.

The operation sends a POST upload to /chats/avatar/set, attaching the image as the image file field. If the API request fails and Continue On Fail is enabled, the item contains an error field in json.

Links

Discussion