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
Telegram

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