Avito icon

Avito

Взаимодействие с API Авито для бизнеса

Actions79

Мессенджер → Отправить Изображение

AI-generated

Summary

Send an image message to a specific chat on Avito Messenger for a given user by referencing a previously uploaded image ID.

Inputs

  • User ID (required) — The numeric identifier of the user (client) to whom the message is sent.
  • Chat ID (required) — The identifier of the chat where the image message will be sent.
  • Image ID (required) — The identifier of the image previously uploaded, which will be sent as the message content.

Output shape

a JSON object representing the result of sending the image message.

The operation requires the image to be uploaded beforehand using the appropriate upload endpoint, which returns the Image ID. This operation works only for the main company account, and expects valid User ID, Chat ID, and Image ID parameters to succeed.

Examples

Example 1: Send an image to a chat

Specify user ID, chat ID, and the image ID obtained from a prior upload to send an image message to the chat on Avito Messenger.

Links

Discussion