본문으로 건너뛰기
모든 도구

telegram_read_messages

Telegram · macOS · Windows

효과: 읽기. 상태: 조건부 제공.

‘조건부 제공’은 도구가 버전, 플랫폼, 권한, 계정 또는 설정에 따라 달라질 수 있음을 뜻하며 모든 설치에서 활성화되었다는 의미는 아닙니다.

macOS

목적

Telegram 채팅 하나의 최근 메시지를 최신순으로 읽습니다. chat_id는 반드시 telegram_list_chats에서 가져와야 합니다. 더 오래된 메시지는 반환된 `next_before`를 `before`로 전달하세요. Telegram 연결(telegram_connect)이 필요합니다.

필수 입력

입력 이름은 도구가 요구하는 정확한 형태로 유지됩니다. 영문 정식 기술 정의는 아래 펼칠 수 있는 스키마에 있습니다.

권한 및 확인

스키마에 명시적 확인 매개변수가 없습니다. 이는 무단 작업을 허용하지 않습니다. 효과를 검토하고 승인을 받으세요.

영문 정식 기술 스키마 — macOS
{
  "properties": {
    "account": {
      "description": "Which linked Telegram account to use: its label or id from telegram_list_accounts. Leave it out to use the default account.",
      "type": "string"
    },
    "before": {
      "description": "Only messages older than this message id (the `next_before` of a previous read).",
      "type": "integer"
    },
    "chat_id": {
      "description": "Chat id from telegram_list_chats.",
      "type": "string"
    },
    "limit": {
      "description": "Max messages (default 30, max 100).",
      "type": "integer"
    }
  },
  "required": [
    "chat_id"
  ],
  "type": "object"
}

문서 예시

telegram_read_messages 문서 예시입니다. 이 예시를 실행하지 마세요. 표시된 인수는 가상 데이터 세트에 속합니다. 실제 호출 전에 실제 식별자를 확인하고 승인을 받으세요.

{
  "chat_id": "5550100123",
  "limit": 5
}

Windows

목적

Telegram 채팅 하나의 최근 메시지를 최신순으로 읽습니다. chat_id는 반드시 telegram_list_chats에서 가져와야 합니다. 더 오래된 메시지는 반환된 `next_before`를 `before`로 전달하세요. Telegram 연결(telegram_connect)이 필요합니다.

필수 입력

입력 이름은 도구가 요구하는 정확한 형태로 유지됩니다. 영문 정식 기술 정의는 아래 펼칠 수 있는 스키마에 있습니다.

권한 및 확인

스키마에 명시적 확인 매개변수가 없습니다. 이는 무단 작업을 허용하지 않습니다. 효과를 검토하고 승인을 받으세요.

영문 정식 기술 스키마 — Windows
{
  "properties": {
    "account": {
      "description": "Which linked Telegram account to use: its label or id from telegram_list_accounts. Leave it out to use the default account.",
      "type": "string"
    },
    "before": {
      "description": "Only messages older than this message id (the `next_before` of a previous read).",
      "type": "integer"
    },
    "chat_id": {
      "description": "Chat id from telegram_list_chats.",
      "type": "string"
    },
    "limit": {
      "description": "Max messages (default 30, max 100).",
      "type": "integer"
    }
  },
  "required": [
    "chat_id"
  ],
  "type": "object"
}

문서 예시

telegram_read_messages 문서 예시입니다. 이 예시를 실행하지 마세요. 표시된 인수는 가상 데이터 세트에 속합니다. 실제 호출 전에 실제 식별자를 확인하고 승인을 받으세요.

{
  "chat_id": "5550100123",
  "limit": 5
}