Actions41
- 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 message with any local file attached to a specified Telegram chat, optionally including a caption, replying to a specific message, or within a thread.
Inputs
- Chat ID (required) — ID of the Telegram chat to send the file message to.
- File Path (required) — Local filesystem path to the file to attach and send.
- File Caption — Optional text caption to accompany the file attachment in the message.
- Reply to messageId — Message ID to which this file message replies.
- Reply to threadID — If not 0, sends the message in the specified message thread within the chat.
Output shape
a single record
Returns the result object from the Telegram client invoke call that sends the message, containing details of the sent message including message ID and content.
Examples
Example 1: Send a PDF document with a caption in reply to a specific message within a Telegram chat thread
Set 'Chat ID' to the desired Telegram chat, provide the local file path to the PDF, optionally enter a 'File Caption', specify the 'Reply to messageId' and 'Reply to threadID' if replying within a thread, then execute the node.