telegram_send_message
Telegram · macOS · Windows
効果: 送信. 状態: 条件付き提供.
「条件付き提供」は、バージョン、プラットフォーム、権限、アカウント、設定に依存する可能性を示し、すべての環境で有効という意味ではありません。
macOS
目的
あなた自身のアカウントから、1 つのチャットに Telegram メッセージを送信します。プレビュー付きの書き込み操作です。最初の呼び出し(confirm=false)はプレビューを返し、何も送信しません。それをユーザーに見せ、承認された場合にのみ confirm=true でもう一度呼び出してください。プレビューには、呼び出し側が渡した内容ではなく、Telegram 自身から得た宛先が示されます(chat_name は chat_id に対する Telegram 上の名前です。id がアカウントの最近のチャットにない場合や、そのアカウントの読み取りが My apps の行でオフになっている場合は、chat_name_unresolved になります)。chat_id は必ず telegram_list_chats から取得してください。作り出してはいけません。1 回の呼び出しにつき 1 件のメッセージで、一括送信はできません。
必須入力
chat_idmessage
入力名はツールが要求する正確な形式のままです。英語の正規技術定義は下の展開可能なスキーマにあります。
権限と確認
スキーマには明示的な確認パラメータがあります。プレビューを確認し、プラットフォーム契約に従って実操作を承認してください。
- このプラットフォームでは、ユーザーが許可したアプリ、アカウント、リソースだけを使用してください。接続と権限の要件については、このツールのプラットフォーム固有の説明を参照してください。このカタログは、追加の OAuth スコープや OS 権限があるとは主張しません。
英語の正規技術スキーマ — 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": "Optional: the name you expect for chat_id. It is never shown as the recipient — the preview shows Telegram's own name for chat_id and sets chat_name_mismatch when yours differs.",
"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"
},
"remember": {
"description": "With confirm: true, also stop asking for this kind of action from now on. Only when the person said so (\"don't ask again\"). The person can revoke it in LMCP or with set_always_allowed.",
"type": "boolean"
},
"reply_to_message_id": {
"description": "Optional: the id of a message in this chat (from telegram_read_messages) that this message replies to. To acknowledge a message for telegram_delete_message, reply to it with the text ACK.",
"type": "integer"
}
},
"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件で、一括送信はできません。
必須入力
chat_idmessage
入力名はツールが要求する正確な形式のままです。英語の正規技術定義は下の展開可能なスキーマにあります。
権限と確認
スキーマには明示的な確認パラメータがあります。プレビューを確認し、プラットフォーム契約に従って実操作を承認してください。
- このプラットフォームでは、ユーザーが許可したアプリ、アカウント、リソースだけを使用してください。接続と権限の要件については、このツールのプラットフォーム固有の説明を参照してください。このカタログは、追加の OAuth スコープや OS 権限があるとは主張しません。
英語の正規技術スキーマ — 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": "Optional: the name you expect that chat to have. The preview shows the name Telegram gives for chat_id, never this one, and says when they differ.",
"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"
},
"remember": {
"description": "With confirm=true, and only after the person said so: do this kind of action without asking from now on («don't ask me again»). The preview names the family.",
"type": "boolean"
},
"reply_to_message_id": {
"description": "Optional: the id of a message in this chat (from telegram_read_messages) that this message replies to. To acknowledge a message for telegram_delete_message, reply to it with the text ACK.",
"type": "integer"
}
},
"required": [
"chat_id",
"message"
],
"type": "object"
}ドキュメント例
telegram_send_message のドキュメント例です。この例は実行しないでください。表示される引数は架空のデータセットに属します。実際に呼び出す前に実在する識別子を確認し、承認を得てください。
{
"chat_id": "5550100123",
"confirm": false,
"message": "Can we review the launch checklist on Tuesday?"
}