Платформенная аналитика MCP
Телеграм MCP Сервер
Телеграм имеет более 1 миллиарда активных пользователей в месяц, которые обмениваются сообщениями, каналами, группами, голосовыми заметками, ботами и медиа, что делает его важным для прямой дистрибуции, управления сообществами и быстрого распространения новостей.
MCP Версия: 1.0.0 7 Инструменты MCP Аутентификация
Базовый URL
https://mcp.pressmonitor.com/telegram/v1 Аутентификация
Вызовы MCP также используют токены Bearer в запросах JSON-RPC 2.0.
Authorization: Bearer YOUR_TOKEN Обнаружить инструменты
Начните с перечисления инструментов, доступных через сервер MCP.
curl -X POST \ 'https://mcp.pressmonitor.com/telegram/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' const response = await fetch('https://mcp.pressmonitor.com/telegram/v1', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, body: JSON.stringify({ jsonrpc: '2.0', id: 1, method: 'tools/list' }) }); console.log(await response.json()); import requests payload = { 'jsonrpc': '2.0', 'id': 1, 'method': 'tools/list' } response = requests.post( 'https://mcp.pressmonitor.com/telegram/v1', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json()) tool
bot_info Информация о боте
Информация о боте
Аргументы
| Имя | Тип | Обязательно | Описание |
|---|---|---|---|
| username | string | Да | Имя пользователя |
Примеры кода
curl -X POST \ 'https://mcp.pressmonitor.com/telegram/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"bot_info","arguments":{"username":"SOME_STRING_VALUE"}}}' const payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "bot_info", "arguments": { "username": "SOME_STRING_VALUE" } } }; const response = await fetch('https://mcp.pressmonitor.com/telegram/v1', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, body: JSON.stringify(payload) }); console.log(await response.json()); import requests payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "bot_info", "arguments": { "username": "SOME_STRING_VALUE" } } } response = requests.post( 'https://mcp.pressmonitor.com/telegram/v1', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json()) tool
channel_info Информация о канале
Информация о канале
Аргументы
| Имя | Тип | Обязательно | Описание |
|---|---|---|---|
| username | string | Да | Имя пользователя |
Примеры кода
curl -X POST \ 'https://mcp.pressmonitor.com/telegram/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"channel_info","arguments":{"username":"SOME_STRING_VALUE"}}}' const payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "channel_info", "arguments": { "username": "SOME_STRING_VALUE" } } }; const response = await fetch('https://mcp.pressmonitor.com/telegram/v1', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, body: JSON.stringify(payload) }); console.log(await response.json()); import requests payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "channel_info", "arguments": { "username": "SOME_STRING_VALUE" } } } response = requests.post( 'https://mcp.pressmonitor.com/telegram/v1', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json()) tool
get_messages Получить сообщения
Получить сообщения
Аргументы
| Имя | Тип | Обязательно | Описание |
|---|---|---|---|
| username | string | Да | Имя пользователя |
| offset | string | Нет | Смещение |
Примеры кода
curl -X POST \ 'https://mcp.pressmonitor.com/telegram/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_messages","arguments":{"username":"SOME_STRING_VALUE","offset":"SOME_STRING_VALUE"}}}' const payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "get_messages", "arguments": { "username": "SOME_STRING_VALUE", "offset": "SOME_STRING_VALUE" } } }; const response = await fetch('https://mcp.pressmonitor.com/telegram/v1', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, body: JSON.stringify(payload) }); console.log(await response.json()); import requests payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "get_messages", "arguments": { "username": "SOME_STRING_VALUE", "offset": "SOME_STRING_VALUE" } } } response = requests.post( 'https://mcp.pressmonitor.com/telegram/v1', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json()) tool
group_info Информация о группе
Информация о группе
Аргументы
| Имя | Тип | Обязательно | Описание |
|---|---|---|---|
| username | string | Да | Имя пользователя |
Примеры кода
curl -X POST \ 'https://mcp.pressmonitor.com/telegram/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"group_info","arguments":{"username":"SOME_STRING_VALUE"}}}' const payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "group_info", "arguments": { "username": "SOME_STRING_VALUE" } } }; const response = await fetch('https://mcp.pressmonitor.com/telegram/v1', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, body: JSON.stringify(payload) }); console.log(await response.json()); import requests payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "group_info", "arguments": { "username": "SOME_STRING_VALUE" } } } response = requests.post( 'https://mcp.pressmonitor.com/telegram/v1', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json()) tool
search Поиск
Поиск
Аргументы
| Имя | Тип | Обязательно | Описание |
|---|---|---|---|
| keyword | string | Да | Ключевое слово |
Примеры кода
curl -X POST \ 'https://mcp.pressmonitor.com/telegram/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search","arguments":{"keyword":"SOME_STRING_VALUE"}}}' const payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "search", "arguments": { "keyword": "SOME_STRING_VALUE" } } }; const response = await fetch('https://mcp.pressmonitor.com/telegram/v1', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, body: JSON.stringify(payload) }); console.log(await response.json()); import requests payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "search", "arguments": { "keyword": "SOME_STRING_VALUE" } } } response = requests.post( 'https://mcp.pressmonitor.com/telegram/v1', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json()) tool
search_hashtag Поиск по хештегу
Поиск по хештегу
Аргументы
| Имя | Тип | Обязательно | Описание |
|---|---|---|---|
| hashtag | string | Да | Хештег |
| offset | string | Нет | Смещение |
Примеры кода
curl -X POST \ 'https://mcp.pressmonitor.com/telegram/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_hashtag","arguments":{"hashtag":"SOME_STRING_VALUE","offset":"SOME_STRING_VALUE"}}}' const payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "search_hashtag", "arguments": { "hashtag": "SOME_STRING_VALUE", "offset": "SOME_STRING_VALUE" } } }; const response = await fetch('https://mcp.pressmonitor.com/telegram/v1', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, body: JSON.stringify(payload) }); console.log(await response.json()); import requests payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "search_hashtag", "arguments": { "hashtag": "SOME_STRING_VALUE", "offset": "SOME_STRING_VALUE" } } } response = requests.post( 'https://mcp.pressmonitor.com/telegram/v1', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json()) tool
user_info Информация о пользователе
Информация о пользователе
Аргументы
| Имя | Тип | Обязательно | Описание |
|---|---|---|---|
| username | string | Да | Имя пользователя |
Примеры кода
curl -X POST \ 'https://mcp.pressmonitor.com/telegram/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"user_info","arguments":{"username":"SOME_STRING_VALUE"}}}' const payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "user_info", "arguments": { "username": "SOME_STRING_VALUE" } } }; const response = await fetch('https://mcp.pressmonitor.com/telegram/v1', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, body: JSON.stringify(payload) }); console.log(await response.json()); import requests payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "user_info", "arguments": { "username": "SOME_STRING_VALUE" } } } response = requests.post( 'https://mcp.pressmonitor.com/telegram/v1', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json())