Actions40
- Chat Actions
- Contact Actions
- Custom Request Actions
- File Actions
- Group Actions
- Login Actions
- Message Actions
- User Actions
Message → Send Message with File
AI-generatedSummary
Send a document file to a specified Telegram chat, optionally including a caption and replying within a specific message thread or to a particular message.
Inputs
- Chat ID (required) — ID of the Telegram chat where the file will be sent.
- File Path (required) — Local path to the file to send.
- File Caption — Optional caption text for the sent file.
- Reply to threadID — If specified and not 0, sends the message in the thread with this identifier.
- Reply to messageId — If specified, the message will be sent as a reply to this message ID.
Output shape
a single JSON object representing the sent message as returned by the Telegram API.
If the file caption is empty, it is sent as null. Reply thread and message IDs default to zero if not specified. The operation may throw errors if the Telegram client is not authenticated; login is required first using the node's login operations.