Skip to main content
Before you start, install the SDK and set your credentials as described in the Python SDK installation guide. This page is the reference for the SDK methods and parameters. Building a Python WhatsApp bot? See Build a WhatsApp bot in Python.

Overview

The Send Message module provides comprehensive methods for sending various message types, managing interactions, and controlling chat on WhatsApp. Build engaging, feature-rich messaging experiences with safe sending options, link previews, and more.
Every method returns the parsed JSON response as a plain dict and raises hypersender.HypersenderError (with status_code, message, and body) when the request fails. The chat ID and other required values are positional; optional parameters are keyword-only.

Text Methods

Send various types of content to engage your audience with multimedia and interactive elements.

Safe Send Text Message

Send text with the Python SDK’s send_text_safe method. See the endpoint reference for its request fields and response flow.

Send Text Message

Send plain text messages with link preview (optional) (learn more)
We highly recommend using the send-text-safe endpoint for regular messaging operations to maintain a more natural communication pattern, and keep your whatsapp number safe from being blocked.
Media methods take either url= (a publicly reachable URL) or file= (a local file path, bytes, or a file opened in binary mode). Pass exactly one of them. With file=, the SDK uploads the file as multipart form data.

Send Image Message

Send images to WhatsApp users via URL or local file. (learn more)

Send Video Message

Send videos to WhatsApp users via URL or local file. (learn more)
You can send videos only in mp4 formats - so make sure the url contains the correct extensionMax allowed file size is 20MB.

Send Voice Message

Send voice messages to WhatsApp users via URL or local file. (learn more)

Send Location Message

Send location messages to WhatsApp users. (learn more)

Send Poll Message

Send poll messages to WhatsApp users. (learn more)
Send a text message with a custom link preview. (learn more)

Send File Message

Send any file type via URL or local file. (learn more)

Send Contact Card

Send contact cards (vCard) to WhatsApp users. (learn more)
Each contact dict supports the API’s keys: vcard, fullName, organization, phoneNumber, whatsappId.You can send one or multiple contacts in a single message by including multiple items in the contacts list.
Last modified on November 24, 2026