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

telegram_send_message

Telegram · macOS · Windows

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

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

macOS

목적

사용자 본인의 계정으로 하나의 채팅에 Telegram 메시지를 보냅니다. 미리보기가 있는 쓰기 작업입니다. 첫 번째 호출(confirm=false)은 미리보기를 반환하며 아무것도 보내지 않습니다. 사용자에게 보여 주고 승인한 후에만 confirm=true로 다시 호출하세요. 미리보기는 호출자가 전달한 값이 아니라 Telegram 자체에서 받아 수신자를 표시합니다(chat_name은 chat_id에 대한 Telegram의 이름이며, id가 계정의 최근 채팅에 없거나 My apps의 해당 행에서 그 계정 읽기가 꺼져 있으면 chat_name_unresolved). chat_id는 반드시 telegram_list_chats에서 가져와야 하며, 지어내지 마세요. 호출당 메시지 하나이며 대량 전송은 없습니다.

필수 입력

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

권한 및 확인

스키마에 명시적 확인 매개변수가 있습니다. 미리보기를 검토하고 플랫폼 계약에 따라 실제 작업을 승인하세요.

영문 정식 기술 스키마 — 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

목적

내 계정으로 Telegram 메시지를 한 채팅에 보냅니다. 미리보기가 있는 쓰기 작업: 첫 번째 호출(confirm=false)은 미리보기를 반환하며 아무것도 보내지 않습니다. 사용자에게 보여 주고 승인한 후에만 confirm=true로 다시 호출하세요. chat_id는 반드시 telegram_list_chats에서 가져와야 하며 절대 임의로 만들지 마세요. 호출당 메시지 하나이며 대량 전송은 지원하지 않습니다.

필수 입력

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

권한 및 확인

스키마에 명시적 확인 매개변수가 있습니다. 미리보기를 검토하고 플랫폼 계약에 따라 실제 작업을 승인하세요.

영문 정식 기술 스키마 — 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?"
}