Sign inGet started

bird whatsapp groups pins create

Usage

Contoh kode
bird whatsapp groups pins create <group-id> [flags]

Description

Pin a message in a WhatsApp group
Pin one of the group's messages at the top of its chat for 1 to 30 days. A group holds 3 pinned messages; pinning a fourth unpins the oldest. The group's pinned_messages carries what is pinned.
Build the request from flags, a JSON WhatsAppGroupPinnedMessageCreate body via --body-file ("-" reads stdin), or both — a flag overrides the matching body field. Run --example to print a ready-to-edit body, or --dry-run to print the resolved request without sending it.

Examples

Contoh kode
# print the body shape (no credentials needed)
bird whatsapp groups pins create --example

# the body it prints:
Contoh kode
{
  "duration_days": 7,
  "message_id": "wam_01krdgeqcxet5s7t44vh8rt9mg"
}

Options

Request

NameDescription
--body-fileRead the JSON request body from this file; "-" reads stdin
--examplePrint a complete example request body, then exit
--dry-runPrint the resolved request without sending it, then exit
--idempotency-keyDeduplication key; a retry with the same key won't act twice

Options

NameDescription
--message-idThe message to pin. It has to be one this group carries: a message in another group, or a one-to-one message, returns a 422 WhatsAppMessageNotInGroup. (required; or in --body-file)
--duration-days <n>How many days the message stays pinned before WhatsApp unpins it, from 1 to 30.
--response-schemaPrint the fields this command returns, then exit
NameDescription
bird whatsapp groups pins deleteUnpin a message in a WhatsApp group

Sumber daya terkait

Lanjutkan dengan dokumentasi, panduan, dan contoh untuk topik ini. Sumber daya tersedia dalam bahasa Inggris.

Dapatkan ringkasan implementasi