MCP
Intelligence Telegram pour les équipes Recherche, Risque et Communauté MCP Server
Outils MCP pour Telegram
URL de base
https://mcp.pressmonitor.com/telegram/v1 Authentification
Les appels MCP utilisent également des jetons Bearer via des requêtes JSON-RPC 2.0.
Authorization: Bearer YOUR_TOKEN Découvrir les outils
Commencez par lister les outils exposés par le serveur 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()) outil
bot_info Informations sur le bot
Informations sur le bot
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| username | string | Oui | Nom d'utilisateur |
Exemples de code
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()) outil
channel_info Informations sur le canal
Informations sur le canal
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| username | string | Oui | Nom d'utilisateur |
Exemples de code
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()) outil
get_messages Récupérer les messages
Récupérer les messages
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| username | string | Oui | Nom d'utilisateur |
| offset | string | Non | Décalage |
Exemples de code
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()) outil
group_info Informations sur le groupe
Informations sur le groupe
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| username | string | Oui | Nom d'utilisateur |
Exemples de code
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()) outil
search Recherche
Recherche
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| keyword | string | Oui | Mot-clé |
Exemples de code
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()) outil
search_hashtag Recherche de hashtag
Recherche de hashtag
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| hashtag | string | Oui | Hashtag |
| offset | string | Non | Décalage |
Exemples de code
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()) outil
user_info Informations utilisateur
Informations utilisateur
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| username | string | Oui | Nom d'utilisateur |
Exemples de code
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())