本文へスキップ
すべてのツール

telegram_read_messages

Telegram · macOS · Windows

効果: 読み取り. 状態: 条件付き提供.

「条件付き提供」は、バージョン、プラットフォーム、権限、アカウント、設定に依存する可能性を示し、すべての環境で有効という意味ではありません。

macOS

目的

Telegram の1つのチャットの最近のメッセージを新しい順に読み取ります。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 の1つのチャットの最近のメッセージを新しい順に読み取ります。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
}