# Отправка группы фото

{% embed url="<https://youtu.be/FkudcnlTgJ0>" %}

**1 блок HTTP-запрос с функцией чтения записи**&#x20;

URL - <https://watbot.ru/api/v1/getListItems>

Method - POST

Body - x-www-form-urlencoded

api\_token - "ключ с платформы"

schema\_id - "адрес из ссылки"

*Записать ответ json в переменные*

data.{{$N}}.foto1.url → фото1

data.{{$N}}.foto2.url → фото2

data.{{$N}}.foto3.url → фото3

<figure><img src="/files/trNQy1QXSbSV3PiIvAqP" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/Gt8LLqnIvEuSpHgy6V35" alt=""><figcaption></figcaption></figure>

**2 блок HTTP-запрос с выводом фото**

URL - <https://api.telegram.org/bot{{bot_token}}/sendMediaGroup?>

Method - POST

Body - json

```json
{
  "chat_id": "{{ telegram_id }}",
  "media": [
    {"type": "photo", "media": "ссылка на фото"},
{"type": "photo", "media": "{{ $фото1}}"},
{"type": "photo", "media": "{{ $фото2}}"},
{
      "type": "photo",
      "media": "{{ $фото3}}",
      "caption": "описание",
      "parse_mode": "HTML"
    }
  ]
}

```

<div><figure><img src="/files/JgElRixgq3Lcct3soQvW" alt=""><figcaption></figcaption></figure> <figure><img src="https://skr.sh/sWsWbLQpEps" alt=""><figcaption></figcaption></figure></div>

<figure><img src="/files/9nA1zqxmvkXnaJ8uFf9D" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.watbot.ru/chat-boty/bloki/nastroiki-http-blokov-iz-video/otpravka-gruppy-foto.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
