Actions50
- Account Actions
- Group Actions
- Journal Actions
- Queue Actions
- Sending Actions
- Service Actions
- Status Actions
- Receiving Actions
Sending → sendFileByUrl
AI-generatedSummary
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'.