WhatsApp Web API (WWebJS) icon

WhatsApp Web API (WWebJS)

Interact with WhatsApp Web API via WWebJS — send messages, manage sessions, chats, groups, contacts and channels

Client → Pin Chat

AI-generated

Summary

Pins the specified chat in the selected session.

Inputs

  • sessionId (required) — Session identifier selected from available sessions or provided via expression; falls back to default session if empty.
  • chatId (required) — WhatsApp chat identifier in format number@c.us for individuals or number@g.us for groups.

Output shape

A single object containing success status and the updated chat record (includes pinned: true).

The response may include additional chat metadata such as pinned flag; fields are optional beyond success.

Examples

Example 1: Pin a group chat to keep it at the top of the conversation list.

sessionId = 'mySession'; chatId = '34698765432@c.us'

Links

Discussion