> For the complete documentation index, see [llms.txt](https://doc.botboom.ru/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.botboom.ru/instrukcii/kanaly/proverka-podpiski.md).

# Проверка подписки

В боте можно проверить статус подписки пользователя на определённый канал.

Для этого, надо сначала подписать бот на канал - бот может проверять пользователей только в каналах на которые он подписан.

Далее общая схема следующая - нужно создать Диалог, который будет ставить метку, которая и будет сигнализировать о подписке на интересующий канал. Далее эту метку можно будет использовать для фильтрации сообщений пользователю.

Итак, по пунктам:

1. Создадим сообщения ответа пользователю в зависимости от того подписан он или нет:<br>

![сообщение если подписан](/files/5IaZ40PV6LOVHUGRKOES)

и аналогичное если не подписан.

2\. Создаём Диалог проверки:

![Диалог проверки подписки на канал](/files/Aem9yzCTQyuU4jLJNNGl)

{% hint style="warning" %}
Важно! Имя канала ставим без символа @
{% endhint %}

Готово. Теперь этот Диалог можно повесить на любую кнопку верхнего и нижнего меню или в Сохраненное сообщение.&#x20;


---

# 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://doc.botboom.ru/instrukcii/kanaly/proverka-podpiski.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.
