> For the complete documentation index, see [llms.txt](https://taddy.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://taddy.gitbook.io/docs/getting-started/integration.md).

# Интеграция

Для начала необходимо установить SDK (доступно на нескольких языках) или использовать [API](/docs/api/about.md).

В настоящий момент для TMA[^1] используйте [Web SDK](/docs/sdk/web.md). Для ботов — [Rest API](/docs/api/about.md) (SDK для различных языков будут доступны позже).

## Базовая интеграция

Для подтверждения базовой интеграции TMA необходимо выполнить инициализацию SDK и отправить событие `ready`. Это событие **необходимо** отправлять при каждом открытии TMA сразу по готовности приложения для регистрации аудитории и событий, связанных с Taddy (запуски, обмен трафиком и проч.)

Для ботов используется аналогичный метод `start` в SDK или [Rest API](/docs/api/about.md) ([Start Event](/docs/api/start-event.md)) для регистрации всех  запусков ботов и команд `/start xxxx`

Для начала работы с Taddy ваш ресурс (TMA или бот) должен иметь базовую интеграцию, а именно — сообщать Taddy о запусках и новых пользователях.

Далее, в зависимости от сценария использования нашего сервиса, можно настроить [обмен трафиком](/docs/getting-started/exchange.md) и [показ рекламы](/docs/getting-started/ads.md).

[^1]: Telegram Mini Apps


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://taddy.gitbook.io/docs/getting-started/integration.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.
