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

telegram_send_message

Telegram · macOS · Windows

効果: 送信. 状態: 条件付き提供.

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

macOS

目的

自分のアカウントから1つのチャットへ Telegram メッセージを送信します。プレビュー付きの書き込み操作です。最初の呼び出し(confirm=false)はプレビューを返し、何も送信しません。ユーザーに見せ、承認を得てからのみ confirm=true で再度呼び出します。chat_id は必ず telegram_list_chats から取得したものを使い、ID を捏造してはいけません。1回の呼び出しで送るメッセージは1件で、一括送信はできません。

必須入力

入力名はツールが要求する正確な形式のままです。英語の正規技術定義は下の展開可能なスキーマにあります。

権限と確認

スキーマには明示的な確認パラメータがあります。プレビューを確認し、プラットフォーム契約に従って実操作を承認してください。

英語の正規技術スキーマ — 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"
    },
    "chat_id": {
      "description": "Chat id from telegram_list_chats.",
      "type": "string"
    },
    "chat_name": {
      "description": "The chat's name as telegram_list_chats showed it, echoed in the preview so the user sees who receives it.",
      "type": "string"
    },
    "confirm": {
      "description": "Must be true to actually send. Without it, returns a preview.",
      "type": "boolean"
    },
    "message": {
      "description": "Text to send (max 4096 characters).",
      "type": "string"
    }
  },
  "required": [
    "chat_id",
    "message"
  ],
  "type": "object"
}

ドキュメント例

telegram_send_message のドキュメント例です。この例は実行しないでください。表示される引数は架空のデータセットに属します。実際に呼び出す前に実在する識別子を確認し、承認を得てください。

{
  "chat_id": "5550100123",
  "confirm": false,
  "message": "Can we review the launch checklist on Tuesday?"
}

Windows

目的

自分のアカウントから1つのチャットへ Telegram メッセージを送信します。プレビュー付きの書き込み操作です。最初の呼び出し(confirm=false)はプレビューを返し、何も送信しません。ユーザーに見せ、承認を得てからのみ confirm=true で再度呼び出します。chat_id は必ず telegram_list_chats から取得したものを使い、ID を捏造してはいけません。1回の呼び出しで送るメッセージは1件で、一括送信はできません。

必須入力

入力名はツールが要求する正確な形式のままです。英語の正規技術定義は下の展開可能なスキーマにあります。

権限と確認

スキーマには明示的な確認パラメータがあります。プレビューを確認し、プラットフォーム契約に従って実操作を承認してください。

英語の正規技術スキーマ — 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"
    },
    "chat_id": {
      "description": "Chat id from telegram_list_chats.",
      "type": "string"
    },
    "chat_name": {
      "description": "The chat's name as telegram_list_chats showed it, echoed in the preview so the user sees who receives it.",
      "type": "string"
    },
    "confirm": {
      "description": "Must be true to actually send. Without it, returns a preview.",
      "type": "boolean"
    },
    "message": {
      "description": "Text to send (max 4096 characters).",
      "type": "string"
    }
  },
  "required": [
    "chat_id",
    "message"
  ],
  "type": "object"
}

ドキュメント例

telegram_send_message のドキュメント例です。この例は実行しないでください。表示される引数は架空のデータセットに属します。実際に呼び出す前に実在する識別子を確認し、承認を得てください。

{
  "chat_id": "5550100123",
  "confirm": false,
  "message": "Can we review the launch checklist on Tuesday?"
}