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.fr/mcp Authentification
Les appels MCP utilisent aussi des jetons Bearer sur des requêtes JSON-RPC 2.0.
Authorization: Bearer YOUR_TOKEN bot_info
Informations sur le bot
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| username | string | Oui | Nom d'utilisateur |
Exemples de code
curl -X POST "https://mcp.pressmonitor.fr/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "bot_info",
"arguments": {
"username": "VALUE"
}
},
"id": 1
}' channel_info
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.fr/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "channel_info",
"arguments": {
"username": "VALUE"
}
},
"id": 1
}' get_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.fr/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "get_messages",
"arguments": {
"username": "VALUE"
}
},
"id": 1
}' group_info
Informations sur le groupe
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| username | string | Oui | Nom d'utilisateur |
Exemples de code
curl -X POST "https://mcp.pressmonitor.fr/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "group_info",
"arguments": {
"username": "VALUE"
}
},
"id": 1
}' search
Recherche
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| keyword | string | Oui | Mot-clé |
Exemples de code
curl -X POST "https://mcp.pressmonitor.fr/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "search",
"arguments": {
"keyword": "VALUE"
}
},
"id": 1
}' search_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.fr/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "search_hashtag",
"arguments": {
"hashtag": "VALUE"
}
},
"id": 1
}' user_info
Informations sur l'utilisateur
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| username | string | Oui | Nom d'utilisateur |
Exemples de code
curl -X POST "https://mcp.pressmonitor.fr/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "user_info",
"arguments": {
"username": "VALUE"
}
},
"id": 1
}'