Type Alias GroupMessageSendBase

GroupMessageSendBase: Omit<
    ExtendedIndividualMessageSendBase,
    "interactive"
    | "reaction"
    | "location"
    | "contacts",
> & {
    contacts?: never;
    interactive?: never;
    location?: never;
    pin?: WhatsAppGroupPin;
    reaction?: never;
}

Group sends intentionally expose only the Groups API content contract: text, media (including a sticker), text/media templates, and pin/unpin. A group template may contain only a text or media header, a body, and a footer; other templates return 422 whatsapp_group_template_type_unsupported. groupId is an opaque group ID and is never a phone-number recipient.

Type declaration

  • Optionalcontacts?: never
  • Optionalinteractive?: never
  • Optionallocation?: never
  • Optionalpin?: WhatsAppGroupPin

    Group-only pin/unpin operation.

  • Optionalreaction?: never