Skip to main content

Broadcast Buddy Python SDK 🚀

Official, zero-dependency Python client library for the Broadcast Buddy WhatsApp Gateway API. Send formatted text, interactive multi-choice polls, high-resolution media, PDF invoices, GPS location pins, and check real-time phone number registration on WhatsApp.

PyPI version Python versions License: MIT


✨ Features

  • Zero External Dependencies — Built directly on Python's standard urllib engine. Installs instantaneously anywhere.
  • 100% Type Annotated — Full PEP 484 type hints with @dataclass models and py.typed support for flawless PyCharm, VS Code, and mypy autocompletion.
  • WhatsApp Polls & Media — First-class support for interactive polls, image captions, PDF documents, voice notes, and contact cards.
  • Live Verification — Check if customer phone numbers are registered on WhatsApp before dispatching broadcasts.
  • Pythonic & CamelCase Aliasing — Use standard Python send_message() or JS-style sendMessage().

📦 Installation

pip install broadcastbuddy

Or with Poetry / Pipenv:

poetry add broadcastbuddy

🚀 Quickstart

from broadcastbuddy import BroadcastBuddy

# Initialize with your API Key (Session ID)
bb = BroadcastBuddy("bb_live_YOUR_API_KEY")

# 1. Verify if a recipient is active on WhatsApp
check = bb.is_on_whatsapp("233240001122")
print("On WhatsApp:", check.is_registered)

# 2. Send a WhatsApp Text Message
res = bb.send_message("233240001122", "🚀 Hello from Broadcast Buddy Python SDK!")
print("Message Sent:", res.success)

# 3. Send an Interactive Multi-Choice Poll
bb.send_poll(
    phone="233240001122",
    question="Which feature should we build next?",
    options=[
        "AI Auto-Pilot Agent",
        "Custom Webhook Flows",
        "Enterprise CRM Sync"
    ],
    is_multi_select=False
)

# 4. Send Image with Caption (URL or Base64)
bb.send_image(
    phone="233240001122",
    image_source="https://example.com/receipt.png",
    caption="Your Payment Receipt #1092"
)

# 5. Send PDF Document / Invoice
bb.send_document(
    phone="233240001122",
    doc_source="data:application/pdf;base64,...",
    filename="Invoice_2026.pdf",
    caption="Here is your monthly invoice"
)

# 6. Check Hotline Connection Status
status = bb.get_status()
print("Hotline Status:", status.status, "Connected:", status.success)

📚 API Reference

BroadcastBuddy(api_key: str, timeout: int = 30)

Method Arguments Returns Description
send_message phone, message, options=None ApiResponse Send formatted text messages.
send_poll phone, question, options, is_multi_select=False ApiResponse Send interactive multi-choice polls.
send_image phone, image_source, caption="", filename="image.png" ApiResponse Send JPG/PNG/WebP image (URL or Base64).
send_document phone, doc_source, filename="doc.pdf", caption="" ApiResponse Send PDF, Excel, Word, or zip document.
send_audio phone, audio_source, filename="audio.mp3" ApiResponse Send audio voice notes.
send_location phone, latitude, longitude, name="", address="" ApiResponse Send a GPS Location / Map Pin.
send_contact phone, name, contact_phone, organization="" ApiResponse Send a Contact Card (vCard).
schedule_message phone, message, scheduled_time ApiResponse Schedule message for future ISO timestamp.
is_on_whatsapp phone WhatsAppNumberCheckResponse Verify if a number exists on WhatsApp.
get_number_id phone dict Fetch standard WhatsApp JID format.
get_status - SessionStatusResponse Check WhatsApp hotline connection state.

📄 License

MIT © Broadcast Buddy

Metadata

Release files for broadcastbuddy 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for broadcastbuddy 1.0.1
File Size Uploaded Provenance Actions
broadcastbuddy-1.0.1.tar.gz 10.7 kB Without provenance Details for broadcastbuddy-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for broadcastbuddy 1.0.1
File Interpreter ABI Platform Actions
broadcastbuddy-1.0.1-py3-none-any.whl Python 3 none any Details for broadcastbuddy-1.0.1-py3-none-any.whl

Total release size: 20.6 kB

Release files / broadcastbuddy-1.0.1.tar.gz

Download URL broadcastbuddy-1.0.1.tar.gz
Size 10.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e6eb70ac497eb5aaf5150b750e39a81940177cb24ecf8d1739208992801fa6d8
BLAKE2b-256 checksum
How to use checksums
6d11bccb3aade85430438887b59e75b31bf76b28ee8740e8ee79e8a2de84afd0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Release files / broadcastbuddy-1.0.1-py3-none-any.whl

Download URL broadcastbuddy-1.0.1-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc39e063f81e5594b9a06375bcbc45d580bb04f1e7a1d191e74553908e396ca3
BLAKE2b-256 checksum
How to use checksums
a3b6d7d1182eee1abd4af75ab914e470b8938f2d43f8e4171b3bbb77877a78a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Security for broadcastbuddy 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page