bird whatsapp groups pins create
Usage
Ejemplo de código
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
Ejemplo de código
# print the body shape (no credentials needed)
bird whatsapp groups pins create --example
# the body it prints:Ejemplo de código
{
"duration_days": 7,
"message_id": "wam_01krdgeqcxet5s7t44vh8rt9mg"
}Options
Request
| Name | Description |
|---|---|
| --body-file | Read the JSON request body from this file; "-" reads stdin |
| --example | Print a complete example request body, then exit |
| --dry-run | Print the resolved request without sending it, then exit |
| --idempotency-key | Deduplication key; a retry with the same key won't act twice |
Options
| Name | Description |
|---|---|
| --message-id | The 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-schema | Print the fields this command returns, then exit |
Related
| Name | Description |
|---|---|
| bird whatsapp groups pins delete | Unpin a message in a WhatsApp group |
Recursos relacionados
Continúa con la documentación, guías y ejemplos sobre este tema. Los recursos están en inglés.
Comprender el conceptoShould I use a Bird SDK or call the API directly?Seguir la ruta de aprendizajeBuild your first integrationGuía de implementaciónSend your first email
Obtener un resumen de implementación