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

봇 정보

인수

이름 유형 필수 설명
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_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
}'