GREEN-API for WhatsApp icon

GREEN-API for WhatsApp

Send and receive WhatsApp messages using Green-API.

Sending → sendFileByUrl

AI-generated

Summary

Send a file to a specified chat via a URL.

Inputs

  • chatId (required) — The identifier for the chat to which the file will be sent.
  • quotedMessageId — Optionally specify a message ID to respond to.
  • caption — Optionally add a caption for the file being sent.
  • fileName (required) — The name of the file as it will appear in the chat.
  • urlFile (required) — The URL of the file to be sent.

Output shape

no body — success/failure only

On success, the operation does not return any payload.

Examples

Example 1: Send an image to a user

Set 'chatId' to the user's ID, 'urlFile' to the image URL, and 'fileName' to 'image.jpg'.

Discussion