DEV Community

Cover image for WhatsApp API March Update: Short videos, the store, views on the stories
WhatsApp API for developers
WhatsApp API for developers

Posted on • Edited on

WhatsApp API March Update: Short videos, the store, views on the stories

Powerful gateway optimization and acceleration, sending short video messages and catalog, stories views and a large amount of other improvements

Image description

Whapi.Cloud provides an easy to use API gateway that is compatible with any programming language. It will allow you to integrate your website, store, app or CRM with WhatsApp without nerves.
Our Cloud API is independently developed and has no restrictions to handle messaging, groups, channels, statuses, calls and other functionality of your messenger. At the same time, access to the API has a fixed price, there is no charge for sent messages. This is the key advantage of our simple and powerful API. Here we’ll talk about our March update.

Major Backend Upgrade Boosts Our WhatsApp API Performance

For the past two weeks, we’ve been rigorously testing and analyzing data from our massive backend upgrade, which has significantly enhanced the performance of our WhatsApp API gateway. Our infrastructure has been optimized for maximum performance and efficiency.

This comprehensive upgrade has not only improved channel uptime, but also allows you to process large volumes of chats and messages without any problems or delays.

We have seen an increase in the speed of processing requests by 4–8 times!

Sending short video messages

Image description
Whapi.Cloud API allow you to instantly share up to 60-second video in a new format

Video messages on WhatsApp allow you to instantly record and share up to 60-second video messages directly in the chat. Method responsible for sending PTV to your chats:

https://whapi.readme.io/reference/sendmessageshort

Sending and customization of the catalog

https://whapi.readme.io/reference/sendcatalog

Sends the store linked to the phone number.

The new API Call is responsible for generating and sending a “product” type message with a link to your store.

The method allows to customize the image, title and description of the store.

Allows you to send a store associated with any phone number, not just your own.

Image description

Information about views of stories and messages in the group

Now you can get information about who and how many times your status (stories) or a message in a group has been viewed. All you need is the message ID.

https://whapi.readme.io/reference/getmessageviewstatuses

See who’s been looking at your statuses and messages!

Example of a response to a request:

{
  "statuses": [
    {
      "id": "IXiocXvwx5tM6M1U0.Ma.g-0okBq526t1E1XA-EoRX88I",
      "code": 4,
      "status": "read",
      "recipient_id": "120363540426484704@g.us",
      "timestamp": "1710423370",
      "viewer_id": "61398176983" // The number of the contact who viewed your status
    }
  ]
}
Enter fullscreen mode Exit fullscreen mode

Webhook to view status

You will now be able to receive notifications when your stories are viewed with details: which number viewed your status and when.

Make sure you have PUT statuses enabled in your channel settings.

An example of an incoming webhook when viewing a story:

{
  "statuses": [
    {
      "id": "yqJ_muc_kO8-1CcA-E8JdK1c",
      "code": 4,
      "status": "read",
      "recipient_id": "stories",
      "timestamp": "1710423471",
      "viewer_id": "61398176983" // The number of the contact who viewed your status
    }
  ],
  "event": {
    "type": "statuses",
    "event": "put"
  },
  "channel_id": "MANTIS-M72HC"
}
Enter fullscreen mode Exit fullscreen mode

Channel settings: Several new features

A few of the new settings are described below

Automatic loading of profile pictures of all contacts when authorizing a number

There is a new channel setting, “media init_avatars”. Set it to true to not download all avatars of contacts immediately after the number is connected, which will reduce the amount of requests in WhatsApp and increase security, especially for new numbers. Activate this setting if you need to know about contact images immediately (e.g. you have developed a webchat service)

Offline mode for your number (affects iPhone notifications)

The “offline_mode” parameter allows the account to not be labeled as online. This solves the problem for Iphones with not receiving push notifications.

If true, the API will not send the online status to the server when you connect. This will allow you to receive push notifications to devices connected to the number. After changing the setting, you need to re-authorize the channel.

Uploading old/new messages

Parameter “full_history” — allows you to fully synchronize the history of messages in the local cache. This means that after connecting the number to the channel, you will immediately have access to the entire history of correspondence. If true, all messages will be cached after connection. If false, only new messages will be cached. After changing the setting, you need to re-authorize.

CSV channels export in partner account

We gave our partners the opportunity to export information about all channels in the project in CSV format. The exported file has information about channels at the moment of downloading: Name, ID, Phone Number, Work Period, Status, Mode. We have a very favorable approach to White Label WhatsApp API!

Image description

Fixed

  • Fixed getting products;
  • Fixed Unread parameter value calculation when getting Chats;
  • Fixed Total parameter value counting when getting groups;
  • Fixed getting messages from channel (Get newsletter messages) ;
  • Business version of the application is defined more accurately;
  • File Link Sending Without an Extension.

Remember, if you have any questions or issues along the way, our support team is always available to help. We value every user and strive to ensure that your experience with our API is as smooth and efficient as possible.

You can write to the web chat widget on our main website, or in your personal account. Or write to us by e-mail: care@whapi.cloud

Top comments (1)

Collapse
 
whapicloud profile image
WhatsApp API for developers

We are glad to cooperate with you!