Messages sent via the API appear narrower than messages sent directly from the phone.
Messages containing links are processed specially to ensure the best visual presentation for the recipient. You can see that the width of the displayed content on the end device (mobile app or WhatsApp Web) changes depending on the request parameters. The same set of group data may appear differently on a phone than on WhatsApp Web, so it's important to take this into account.
Below are practical observations and tips that affect the content width when sending messages:
If you send text (a link within the text) with the no_link_preview: true parameter, the display will be as wide as possible. The preview (website image) will not be shown.
The wide_link_preview parameter does not affect the block width, but it does affect whether the full-size preview is shown (if it's not disabled).
If you send an image (used as a website preview) + caption (a link within the text), the block width becomes wide on devices, but slightly smaller than the plain text.
If you force media to be added as a preview, a narrower block display is generated on the phone.
The width of the preview without media is the same as "Send text message + no_link_preview: true."
Last updated