İçeriğe geç
Tüm araçlar

telegram_send_message

Telegram · macOS · Windows

Etki: gönderme. Durum: koşullu kullanılabilir.

“Koşullu kullanılabilirlik”, aracın sürüme, platforma, izinlere, hesaba veya yapılandırmaya bağlı olabileceğini belirtir. Her kurulumda etkin olduğu anlamına gelmez.

macOS

Amaç

Kendi hesabınızdan bir sohbete Telegram iletisi gönderir. Önizlemeli bir YAZMA işlemidir: ilk çağrı (confirm=false) bir önizleme döndürür ve HİÇBİR ŞEY göndermez; bunu kullanıcıya gösterin ve yalnızca onayladıktan sonra confirm=true ile yeniden çağırın. chat_id MUTLAKA telegram_list_chats çağrısından gelmelidir; asla uydurmayın. Çağrı başına bir ileti; toplu gönderim yoktur.

Zorunlu girdiler

Girdi adları aracın istediği biçimde aynen korunur. İngilizce kanonik teknik tanımlar aşağıdaki açılır şemadadır.

İzinler ve onay

Şema açık bir onay parametresi bildirir. Önizlemeyi inceleyin ve gerçek işlemi platform sözleşmesine göre yetkilendirin.

İngilizce kanonik teknik şema — 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"
}

Belge örneği

telegram_send_message için örnek belge. Bu örneği çalıştırmayın. Gösterilen bağımsız değişkenler kurgusal bir veri kümesine aittir; gerçek bir çağrıdan önce gerçek tanıtıcıları bulun ve izin alın.

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

Windows

Amaç

Kendi hesabınızdan bir sohbete Telegram iletisi gönderir. Önizlemeli bir YAZMA işlemidir: ilk çağrı (confirm=false) bir önizleme döndürür ve HİÇBİR ŞEY göndermez; bunu kullanıcıya gösterin ve yalnızca onayladıktan sonra confirm=true ile yeniden çağırın. chat_id MUTLAKA telegram_list_chats çağrısından gelmelidir; asla uydurmayın. Çağrı başına bir ileti; toplu gönderim yoktur.

Zorunlu girdiler

Girdi adları aracın istediği biçimde aynen korunur. İngilizce kanonik teknik tanımlar aşağıdaki açılır şemadadır.

İzinler ve onay

Şema açık bir onay parametresi bildirir. Önizlemeyi inceleyin ve gerçek işlemi platform sözleşmesine göre yetkilendirin.

İngilizce kanonik teknik şema — 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"
}

Belge örneği

telegram_send_message için örnek belge. Bu örneği çalıştırmayın. Gösterilen bağımsız değişkenler kurgusal bir veri kümesine aittir; gerçek bir çağrıdan önce gerçek tanıtıcıları bulun ve izin alın.

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