MCP
テレグラムMCPサーバー
テレグラムは、メッセージ、チャンネル、グループ、音声ノート、ボット、メディアを共有する10億以上の毎月のアクティブユーザーを持ち、直接配信、コミュニティ管理、迅速なニュースオーディエンスにとって重要です。
MCP バージョン: 1.0.0 7 MCPツール 認証
ベース URL
https://mcp.pressmonitor.com/mcp 認証
MCP呼び出しは、JSON-RPC 2.0リクエストを介してBearerトークンを使用します。
Authorization: Bearer YOUR_TOKEN bot_info
Bot情報
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| username | string | はい | ユーザー名 |
コード例
curl -X POST "https://mcp.pressmonitor.com/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
チャンネル情報
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| username | string | はい | ユーザー名 |
コード例
curl -X POST "https://mcp.pressmonitor.com/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
メッセージ取得
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| username | string | はい | ユーザー名 |
| offset | string | いいえ | オフセット |
コード例
curl -X POST "https://mcp.pressmonitor.com/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
グループ情報
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| username | string | はい | ユーザー名 |
コード例
curl -X POST "https://mcp.pressmonitor.com/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
検索
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| keyword | string | はい | キーワード |
コード例
curl -X POST "https://mcp.pressmonitor.com/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
ハッシュタグ検索
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| hashtag | string | はい | ハッシュタグ |
| offset | string | いいえ | オフセット |
コード例
curl -X POST "https://mcp.pressmonitor.com/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
ユーザー情報
引数
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| username | string | はい | ユーザー名 |
コード例
curl -X POST "https://mcp.pressmonitor.com/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
}'