# Как узнать ID сообщения?

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

![](/files/Bbe5uLHOQF4sFnpekvhE)

Скопированная ссылка будет выглядеть либо так:\
`https://t.me/durov_russia/9`  (для публичных чатов/каналов)\
либо так:\
`https://t.me/c/1371918189/310`  (для приватных чатов/каналов)

И в том, и в другом случае ID сообщения находится в самом конце ссылки (после слэша):\
`https://t.me/durov_russia/`**9**\
`https://t.me/c/1371918189/`**310**<br>


---

# 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://docs.teleraptor.ru/misc/how-to-find-out-message-id.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.
