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"}'
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"}}}'
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"}}}'
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"}}}'
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"}}}'
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"}}}'
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"}}}'