Help Desk
  • Getting Started
    • 🙌Welcome to Whapi.Cloud
    • 💰Pricing
    • ☕Partners
    • 🚀Getting started
    • 👨‍💻API Docs
      • Developer hubs
      • Swagger environment
      • Postman collection
  • Sending
    • Introduction
    • Send text message
      • Whatsapp API send message PHP
      • Whatsapp API send message Python
      • Whatsapp API send message Node JS
      • Whatsapp API send message С#
      • Whatsapp API send message Java
      • API integration with VB6
      • Whatsapp API send message GO (Golang)
    • Send video, audio, image, document
    • Send Group message
    • Send post to WhatsApp Channel
    • Send message with Buttons
    • Send Emoji
    • Overview of other methods for sending
      • Send Voice message
      • Send contact (vCard)
      • Send message reactions
  • Receiving
    • Introduction
    • Webhooks
      • Our webhooks (Tracked events)
      • Where to Find the Webhook URL?
      • Set the webhook link to the channel
      • Detailed webhook settings
      • How to check the webhook?
      • Incoming webhooks format
        • Incoming message
        • Sent message
        • Chats
        • Groups
        • Account and device status
        • Other
          • Presences
          • Views of stories (statuses)
          • Story (status) from your contacts
          • Calls
      • Receive messages
        • Receive WhatsApp messages using PHP
        • Receive WhatsApp messages using Node js
        • Receive WhatsApp messages using Python
    • HTTP API
      • Retrieve a Specific User's Chat History
      • Get a full-size picture in the response
      • Get order items
      • Get a profile picture of a chat or user
    • File expiration period
  • Groups
    • Send Group message
      • Mentioning all participants in a WhatsApp group
    • Get list of group members
    • Add new member to Group
  • Channels
    • Send post to WhatsApp Channel
    • Get messages from Channels
    • Get votes from polls in the Channel
  • Communities
    • Introduction
    • Create a community
    • Add a member to a community
    • Send announcement
    • Get info on community participants
    • Add a group / Exclude a group from the community
  • Account
    • Setting "Auto Download"
    • Customizable Webhook Headers
    • How to find out the IP channel
    • How to Delete a Channel
    • Add Business Info to Invoice
  • Source code
    • WhatsApp ChatBot
      • WhatsApp Python Bot
      • WhatsApp PHP Bot
      • WhatsApp Node JS Bot
      • WhatsApp Java Bot
    • WhatsApp API Google Sheets
    • WhatsApp Phone Number Checker
    • Request Distributor (Balancer)
  • FAQ
    • Chat ID. What is it and how to get it?
    • Current status of Buttons on WhatsApp
    • How to send a paragraph (line break)
    • Inactive Links in WhatsApp Messages
    • WhatsApp Text Formatting
    • Checking if the number has Whatsapp
    • Specifics of sending messages to numbers of different countries
    • Why aren't participants being added to the group?
  • Does WhatsApp API Work with the Phone Turned Off?
  • Hints
    • Android Emulators
    • Virtual Numbers for WhatsApp
    • How to use polls as buttons?
    • How to check who blocked you in Whatsapp?
    • Setting up a WhatsApp proxy
  • Integrations
    • Make.com
      • Ready-Made Scenarios
        • WhatsApp & Whisper API: Voice-to-Text Integration
        • Automated WhatsApp Group Message Forwarding in Make.com
      • Request Scenario Setup
    • Pabbly Connect
    • Google Contacts
    • DialogFlow
    • n8n
  • Tools
    • WhatsApp Number Checker
    • Automatic warm-up module
    • WhatsApp Activity Safety Meter
    • Residential Proxies from Whapi.Cloud
  • Troubleshooting
    • Couldn't Link Device – WhatsApp QR Code or Pairing Code Fails
    • Channel status “SYNC_ERROR”
    • Not getting a READ status on webhook
    • 429 (Too Many Requests) - Soft Ban
    • “Waiting for this message. This may take a while” – WhatsApp Message Error
    • Missing push notifications after connecting to API
  • Blocking
    • How to not get Banned?
    • How to do mailings without the risk of being blocked?
    • If My Number Is Banned, Can It Be Restored?
    • Unlocking Your WhatsApp Number
    • Connecting a New WhatsApp Number After a Ban: Steps and Recommendations
    • Warming Up New Phone Numbers for WhatsApp API
  • Partner Documentation
    • Introduction
    • Partner Dashboard Overview
    • Partner Program Guidelines
      • Workflow: Step-by-Step
      • Billing for Partners
      • Allocating Days to Customer Channels: Best Practices & Guide
      • Interface for channel management
    • Partner Documentation
      • Channel creation
      • Changing channel mode
      • Channel extension
      • Channel deletion
      • Getting the list of channels
      • Notices of end of days on balance
Powered by GitBook
On this page

Was this helpful?

  1. Channels

Get votes from polls in the Channel

Polls in the channel (newsletter) are a very handy feature, but there are pitfalls here

PreviousGet messages from ChannelsNextIntroduction

Last updated 7 months ago

Was this helpful?

We already know how to send messages to WhatsApp channels, and it’s incredibly convenient — our API lets you fully automate channel management: receiving messages, tracking changes, , and managing administrators.

Unlike other messaging features, WhatsApp Channels don’t show subscriber details. This means you can’t see who voted in a poll or reacted to a post. In this article, we’ll cover the special approach needed to get poll vote information from a channel and walk you through the process step by step.

How do I receive voting information?

Unfortunately, WhatsApp doesn't provide this information directly, so we had to implement additional operations to enable receiving callbacks for the “voted in poll” event.

Before you can start receiving poll information from a channel, you need to subscribe to channel updates. This is done through a system endpoint, which allows you to receive poll-related callbacks.

To subscribe, use the POST method with the following endpoint: https://gate.whapi.cloud/newsletters/{NewsletterID}/tracking Make sure to specify the channel ID. Once this is completed and you receive a successful response, you will begin receiving poll vote data via your webhook.

Please note that there may be a delay of about 10-20 seconds in receiving these callbacks. The delay is not due to our API - that's how WhatsApp receives and updates information on its side.

Additionally, you can only follow one channel at a time. If you are managing multiple channels, this method will not apply to all of them at once. You will only monitor the last channel you have set up tracking.

To get a callback with this information, enable Messages PATCH mode in your webhook settings. Example of an incoming callback about a poll vote:

{
  "messages_updates": [
    {
      "id": "PrBkfK320oQnGA-xyYBq52rvzX1jA",
      "trigger": {
        "id": "QBg2URA-h.0Bq52rvzX1jA",
        "from_me": false,
        "type": "system",
        "chat_id": "120363120408037684@newsletter",
        "timestamp": 1726147478,
        "source": "mobile",
        "from": "120363120408037684"
      },
      "before_update": {
        "id": "PrBkfK320oQnGA-xyYBq52rvzX1jA",
        "from_me": true,
        "type": "poll",
        "chat_id": "120363120408037684@newsletter",
        "timestamp": 1726146434,
        "source": "mobile",
        "poll": {
          "title": "Hello?!",
          "options": [
            "Option 1 🤠",
            "Option 2 😶\u200d🌫️"
          ],
          "total": 3,
          "results": [
            {
              "name": "Option 1 🤠",
              "voters": [],
              "count": 2,
              "id": "gOzELIQY54NHHytJw6c9Io4fEeuwRiJDno98Th9I7kg="
            },
            {
              "name": "Option 2 😶\u200d🌫️",
              "voters": [],
              "count": 1,
              "id": "0IjOIbIci9QaHswHH5FbS24L7t1c560gceoM5hov6oY="
            }
          ]
        },
        "from": "919984351847"
      },
      "after_update": {
        "id": "PrBkfK320oQnGA-xyYBq52rvzX1jA",
        "from_me": true,
        "type": "poll",
        "chat_id": "120363120408037684@newsletter",
        "timestamp": 1726146434,
        "source": "mobile",
        "poll": {
          "title": "Hello?!",
          "options": [
            "Option 1 🤠",
            "Option 2 😶\u200d🌫️"
          ],
          "total": 4,
          "results": [
            {
              "name": "Option 1 🤠",
              "voters": [],
              "count": 3,
              "id": "gOzELIQY54NHHytJw6c9Io4fEeuwRiJDno98Th9I7kg="
            },
            {
              "name": "Option 2 😶\u200d🌫️",
              "voters": [],
              "count": 1,
              "id": "0IjOIbIci9QaHswHH5FbS24L7t1c560gceoM5hov6oY="
            }
          ]
        },
        "from": "919984351847"
      },
      "changes": [
        "poll"
      ]
    }
  ],
  "event": {
    "type": "messages",
    "event": "patch"
  },
  "channel_id": "MANTIS-PF238"
}

If you want to get vote information via HTTP request, you will also need to be subscribed for updates on the channel.

Use the GET endpoint https://gate.whapi.cloud/newsletters/{NewsletterID}/messages to retrieve all messages from the WhatsApp channel. Find your poll in the reponse and you will see the amount of votes in the poll.

Warning. Get this information via GET https://gate.whapi.cloud/messages/{MessageID} unfortunately will not work. This is due to the nature of getting votes from a poll in a channel, where we perform additional operations that do not affect the Messages section.

We continue to explore WhatsApp's capabilities and add to our methods for automation.

If you have any questions, our team is always available to help you.

LogoSubscribe to newsletter updatesWhapi Cloud - Whatsapp API for developers
sending messages
The method returns the history of WhatsApp Channel messages. Search by ID for your poll post to see the votes.
LogoGet newsletter messagesWhapi Cloud - Whatsapp API for developers
An example of a poll in a channel from the admin side. We see the numbers of those who are among our contacts. The other voices have no identifying information.