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