Intelligence plateformes MCP
Telegram Serveur MCP
Telegram dépasse 1 milliard d'utilisateurs actifs mensuels autour des messages, canaux, groupes, notes vocales, bots et médias, ce qui en fait une plateforme importante pour la diffusion directe, la gestion de communauté et les audiences d'actualité rapide.
MCP Version: 1.0.0 7 Outils MCP Authentification
URL de base
https://mcp.pressmonitor.ca/telegram/v1 Authentification
Les appels MCP utilisent aussi des jetons Bearer sur 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.ca/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.ca/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.ca/telegram/v1', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json()) tool
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.ca/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.ca/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.ca/telegram/v1', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json()) tool
channel_info Informations sur la chaîne
Informations sur la chaîne
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| username | string | Oui | Nom d'utilisateur |
Exemples de code
curl -X POST 'https://mcp.pressmonitor.ca/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.ca/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.ca/telegram/v1', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json()) tool
get_messages Obtenir des messages
Obtenir des 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.ca/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.ca/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.ca/telegram/v1', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json()) tool
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.ca/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.ca/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.ca/telegram/v1', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json()) tool
search Recherche
Recherche
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| keyword | string | Oui | Mot-clé |
Exemples de code
curl -X POST 'https://mcp.pressmonitor.ca/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.ca/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.ca/telegram/v1', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json()) tool
search_hashtag Recherche par hashtag
Recherche par hashtag
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| hashtag | string | Oui | Hashtag |
| offset | string | Non | Décalage |
Exemples de code
curl -X POST 'https://mcp.pressmonitor.ca/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.ca/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.ca/telegram/v1', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json()) tool
user_info Informations sur l'utilisateur
Informations sur l'utilisateur
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| username | string | Oui | Nom d'utilisateur |
Exemples de code
curl -X POST 'https://mcp.pressmonitor.ca/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.ca/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.ca/telegram/v1', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json())