Send message
send_messageDeliver text messages to one person or group via WhatsApp, Telegram, SMS, VK/OK, or MAX, with cascade fallback, scheduling, and priority options.
Instructions
Send a text message via WhatsApp, Telegram (tdlib), Telegram Bot, SMS, VK/OK (notify), or MAX (max), with optional cascade fallback between channels. Supports scheduling, priority, reply-to, typing simulation, and delivery callbacks.
Use it when the user asks to text, message, notify or reply to one person or group chat. For many phone numbers use send_bulk; for documents, images, audio or video use send_file.
Recipient: phone is required, except for personal Telegram (dispatch_routing ["tdlib"]) where username or tdlib_user_id can be used instead, and WhatsApp where whatsapp_lid can be used.
Returns the delivery ID for get_delivery_status and delete_delivery.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Message text. Max 3500 chars for messengers, 160 for one SMS segment in Latin characters. | |
| phone | No | Recipient phone in international format, e.g. 79991234567. Optional if username/tdlib_user_id is used for tdlib. | |
| priority | No | Sending priority. Chosen automatically if omitted. | |
| username | No | Telegram username (format: username or @username). tdlib only. | |
| utm_mark | No | Label for tracking dispatches (see get_utm_tags). | |
| external_id | No | Your client-side ID for this message (idempotency ID). | |
| sender_name | No | Registered SMS sender name (see get_balance → sender names). | |
| callback_url | No | URL that receives the final delivery status as a POST request (retried every 2 minutes, up to 10 times, until it returns HTTP 200). | |
| scheduled_at | No | Delayed sending time, format YYYY-MM-DD HH:MM:SS in UTC+0. At least 1 minute and at most 1 month ahead. | |
| whatsapp_lid | No | WhatsApp LID. Format: 43445322325 or 43445322325@lid. WhatsApp only. | |
| tdlib_user_id | No | Telegram user ID (positive = private chat, negative = group chat). tdlib channel only. | |
| simulate_typing | No | Default true: show a typing indicator in WhatsApp before sending. false sends instantly. | |
| dispatch_routing | No | Channels in the order JetAPI should try them (cascade: the next channel is used only if delivery through the previous one fails). whatsapp = WhatsApp, tdlib = personal Telegram account, telegram = Telegram Bot, notify = VK/OK, max = MAX messenger, sms = SMS. If omitted, the account's default routing is used. | |
| reply_to_message_id | No | ID of the message to reply to, taken from an incoming-message webhook. |