ChatPush: WhatsApp, Telegram, MAX & SMS

v1.1.1
io.github.ChatPush/whatsapp-telegram-max-sms Checked 44 minutes ago Published 8 days ago

WhatsApp, Telegram, MAX & SMS for AI agents: send messages, files and bulk mailings via ChatPush

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_account Get account

Get full ChatPush account information including token, balance, dispatch routing, sender names, subscription status and Telegram/WhatsApp sessions count. Use it to verify the token works, check whether the subscription is active, or diagnose undelivered messages (e.g. WhatsApp or Telegram not authorized). For just the balance use get_balance.

get_balance Get balance

Get ChatPush account balance, customer ID, available dispatch routing channels, and registered sender names. Use it when the user asks how much money is left, before a large mailing, or to find a valid sender_name for SMS.

get_utm_tags Get UTM tags

Get list of all UTM tags (utm_marks) configured in the ChatPush account for tracking message dispatches. Use it to reuse an existing label as utm_mark in send_message, send_bulk or send_file, so statistics stay grouped.

send_message Send message

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…

ParameterTypeDescription
text *stringMessage text. Max 3500 chars; 938 when dispatch_routing (or the account default routing) includes SMS. One SMS segment is 160 Latin characters.
callback_urlstringURL that receives the final delivery status as a POST request (retried every 2 minutes, up to 10 times, until it returns HTTP 200).
dispatch_routingarrayChannels in the order ChatPush should try them (cascade: the next channel is used only if delivery through the previous one fails). whatsapp = WhatsApp, tdlib = personal Telegram account, telegram = T…
external_idstringYour client-side ID for this message (idempotency ID).
phonestringRecipient phone in international format, e.g. 79991234567. Optional if username/tdlib_user_id is used for tdlib.
prioritystringSending priority. Chosen automatically if omitted.
reply_to_message_idstringID of the message to reply to, taken from an incoming-message webhook.
scheduled_atstringDelayed sending time, format YYYY-MM-DD HH:MM:SS in UTC+0. At least 1 minute and at most 1 month ahead.
sender_namestringRegistered SMS sender name (see get_balance → sender names).
simulate_typingbooleanDefault true: show a typing indicator in WhatsApp before sending. false sends instantly.
tdlib_user_idstringTelegram user ID (positive = private chat, negative = group chat). tdlib channel only.
usernamestringTelegram username (format: username or @username). tdlib only.
utm_markstringLabel for tracking dispatches (see get_utm_tags).
whatsapp_lidstringWhatsApp LID. Format: 43445322325 or 43445322325@lid. WhatsApp only.

get_delivery_status Get delivery status

Get the current status and full details of a specific message delivery by its ID. Returns status, operator info, phone, scheduled time, costs and more. Use it after send_message or send_file when the user asks whether a message was delivered or read, or why it failed — the status is explained in plain words.

ParameterTypeDescription
id *integerDelivery ID from the send_message or send_file response.

delete_delivery Delete delivery

Delete a sent message from WhatsApp or Telegram (tdlib). Only works for messages with final 'Delivered' status. Deletion occurs on all recipient devices. Only messages sent through ChatPush via the tdlib or whatsapp channels can be deleted; SMS cannot. Use it when the user asks to unsend or recall a message.

ParameterTypeDescription
delivery_id *integerID of the delivered message to delete (delivery.id from send_message).

send_bulk Send bulk message

Send the same message to multiple phone numbers at once. Supports scheduling, UTM marks, dispatch routing cascade, Telegram usernames and tdlib user IDs. Use it for announcements, campaigns or reminders to a list of recipients. For one recipient, or when a delivery ID is needed for tracking, use send_message.

ParameterTypeDescription
phones_numbers *arrayPhone numbers in international format, e.g. ["79991234567", "+995598464533"].
text *stringMessage text. Max 3500 chars; 938 when dispatch_routing (or the account default routing) includes SMS. One SMS segment is 160 Latin characters.
dispatch_routingarrayChannels in the order ChatPush should try them (cascade: the next channel is used only if delivery through the previous one fails). whatsapp = WhatsApp, tdlib = personal Telegram account, telegram = T…
scheduled_atstringDelayed sending time, format YYYY-MM-DD HH:MM:SS in UTC+0. At least 1 minute and at most 1 month ahead.
sender_namestringRegistered SMS sender name (see get_balance → sender names).
tdlib_user_idstringTelegram user ID (positive = private chat, negative = group chat). tdlib channel only.
usernamesarrayTelegram usernames (tdlib only): requires "tdlib" in dispatch_routing.
utm_markstringLabel for tracking dispatches (see get_utm_tags).

get_phone_info Get phone info

Look up phone number information including country, mobile operator name and brand. Useful before sending to verify the number and determine routing. Also returns the number normalized to international format, e.g. when the user wrote it with spaces or brackets.

ParameterTypeDescription
phone *stringPhone in international format. Special characters allowed, e.g. +995 (598) 46-45-33.

send_file Send file

Send a file (document, image, audio, video, contact) to a recipient via MAX, WhatsApp or Telegram (set the channel in dispatch_routing; SMS cannot carry files). File is uploaded as multipart/form-data. Images under 10MB sent natively, larger files as download links active for 7 days. Use it when the user wants to share a document, photo, voice message, video or contact card. Provide the file as exactly one of: file_path (local file), file_url (downloaded by the server) or file_base64 (with file_name). Supported: pdf, doc, docx, ppt, pptx, xls, xlsx, zip, 7z; ogg, opus, mp3, aac, amr, 3gp; jp…

ParameterTypeDescription
callback_urlstringURL that receives the final delivery status as a POST request (retried every 2 minutes, up to 10 times, until it returns HTTP 200).
captionstringDescription below the file (WhatsApp only).
customer_idstringInternal client ID.
dispatch_routingarrayChannels in the order ChatPush should try them (cascade: the next channel is used only if delivery through the previous one fails). whatsapp = WhatsApp, tdlib = personal Telegram account, telegram = T…
external_idstringYour client-side ID for this message (idempotency ID).
file_base64stringFile content as base64 (a data: URL is accepted too). Requires file_name.
file_namestringFilename with extension, e.g. document.pdf. Defaults to the name from file_path or file_url.
file_pathstringAbsolute path of a local file to upload (~ is expanded).
file_urlstringPublic http(s) URL of the file; the server downloads and uploads it.
phonestringRecipient phone in international format. Optional if username is used (tdlib).
prioritystringSending priority. Chosen automatically if omitted.
reply_to_message_idstringID of the message to reply to, taken from an incoming-message webhook.
scheduled_atstringDelayed sending time, format YYYY-MM-DD HH:MM:SS in UTC+0. At least 1 minute and at most 1 month ahead.
sender_namestringRegistered SMS sender name (see get_balance → sender names).
simulate_typingbooleanDefault true: show a typing indicator in WhatsApp before sending. false sends instantly.
tdlib_user_idstringTelegram user ID (positive = private chat, negative = group chat). tdlib channel only.
typestringdocument = send as file, image = send as photo (WhatsApp/tdlib).
usernamestringTelegram username (tdlib only).
utm_markstringLabel for tracking dispatches (see get_utm_tags).

create_webhook Create webhook

Register a webhook URL to receive real-time notifications for specific ChatPush events (e.g. whatsapp_log_out, delivery status updates, incoming messages). Use it when the user wants their server, CRM or automation (n8n, Make, Zapier) to receive replies or react to WhatsApp/Telegram events.

ParameterTypeDescription
types *arrayEvent types: whatsapp_log_out (WhatsApp account disconnected); whatsapp_log_in (WhatsApp account connected); whatsapp_incoming_msg (incoming and outgoing WhatsApp messages (with file download links) a…
url *stringHTTPS URL to receive notifications as POST requests.

get_webhook Get webhook

Get details of a specific webhook by its ID: the URL it posts to and the event types it subscribes to.

ParameterTypeDescription
id *integerWebhook ID (from create_webhook or list_webhooks).

list_webhooks List webhooks

List all registered webhooks for this ChatPush account. Use it to see where events are delivered or to find a webhook ID before updating or deleting it.

delete_webhook Delete webhook

Delete a webhook by ID. The webhook will stop receiving notifications.

ParameterTypeDescription
id *integerWebhook ID to delete.

update_webhook Update webhook

Update an existing webhook — change its URL or the list of event types it subscribes to. Pass only what should change; types replaces the whole list.

ParameterTypeDescription
id *integerWebhook ID (from create_webhook or list_webhooks).
typesarrayNew list of event types (replaces the current list).
urlstringNew URL.

set_chat_client_name Set client name in chat

Rename a contact in the ChatPush web messenger, so operators see a person's real name instead of a phone number. The name is stored as the CRM client name of the conversation. Find the conversation by phone, Telegram username or Telegram user ID — at least one is required. If the contact has both WhatsApp and Telegram conversations, both are renamed.

ParameterTypeDescription
name *stringNew name for the contact, e.g. the customer name from your CRM.
phonestringContact phone number in international format.
tdlib_user_idstringContact's Telegram user ID.
tdlib_usernamestringContact's Telegram username.

create_sub_customer Create sub-customer

Create a sub-client under your ChatPush multi-customer account. The response contains the sub-customer's own API token — it is shown only here, so save it. Use it when onboarding a new client of a platform built on ChatPush: each sub-customer gets a separate account, its own messengers and its own subscription. Requires a multi-customer account: a ChatPush client that may create sub-clients through the API.

ParameterTypeDescription
name *stringName of the sub-customer, e.g. the client's company name.

list_sub_customers List sub-customers

List the sub-clients of your ChatPush multi-customer account with their subscription status and whether WhatsApp and Telegram are connected. Requires a multi-customer account: a ChatPush client that may create sub-clients through the API.

ParameterTypeDescription
include_tokensbooleanShow the full sub-customer tokens. Default false: tokens are masked.

get_sub_customer Get sub-customer

Show one sub-client by its customer_id: subscription status and expiry, and whether WhatsApp and Telegram are connected. Requires a multi-customer account: a ChatPush client that may create sub-clients through the API.

ParameterTypeDescription
customer_id *integerInternal ChatPush ID of the sub-customer.
include_tokensbooleanShow the full sub-customer tokens. Default false: tokens are masked.