Upload template media
gambot_upload_template_mediaUploads a public media URL to Meta, returning a reusable header handle for WhatsApp template headers.
Instructions
Upload a public media URL (image/video/document) to Meta and get a reusable header_handle for a template's media HEADER. Use the returned headerHandle inside a HEADER component: {type:'HEADER',format:'IMAGE',example:{header_handle:[headerHandle]}}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public URL of the media to upload. | |
| type | No | Optional MIME type, e.g. image/png, video/mp4, application/pdf. |