Skip to content

WhatsApp templates won't work anymore soonΒ #159

@LufoX11

Description

@LufoX11

Hi!

Any plans to update the plugin to support the new schema? Twilio's blog article

Basically, WhatsApp templates were deprecated and won't work anymore in the near future. You'll need to user contentSid and contentVariables to send the data:

    $sid    = "AC15993a6780...";
    $token  = "[AuthToken]";
    $twilio = new Client($sid, $token);

    $message = $twilio->messages
      ->create("whatsapp:+549114097...", // to
        array(
          "from" => "whatsapp:+14155...",
          "contentSid" => "HXb5b62575e6e4ff6129ad7c8...",
          "contentVariables" => "{"1":"12/1","2":"3pm"}",
          "body" => "Your Message"
        )
      );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions