Actions43
- Chat Actions
- Add Chat Members
- Close Chat
- Close Chat (Lite)
- Create SuperGroup or Channel
- Delete Chat
- Get Chat
- Get Chat History
- Get Chats
- Join Chat
- Mark Chat as Unread
- Open Chat
- Open Chat (Lite)
- Search Public Chat (by Username, Lite)
- Search Public Chat (by Username)
- Search Public Chats (Search in Username, Title)
- Send Chat Action
- 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 file type to a Telegram chat.
Inputs
- chat_id (required) — ID of the chat where the message will be sent.
- filePath (required) — Local path to the file to send.
- fileCaption — Optional caption for the file.
- reply_to_msg_id — Identifier of the message to reply to.
- message_thread_id — If not 0, a message thread identifier in which the message will be sent.
Output shape
object
Telegram API response containing the sent message details.
Examples
Example 1: Send a PDF report to a group chat.
Set chat_id to group ID, filePath to path of the report, and optionally add a caption.