Telegram - Send document action

The Send document action sends a file to a chat in Telegram.

Input

Input fields vary based on your Send by selection. The following input fields are common to all options. Refer to the Telegram Bot API sendDocument documentation for the more information on available input fields.

Input fieldDescription
Send bySelect how to provide the document. Options are File content, File ID, or File URL.
Chat IDEnter the unique identifier for the target chat or the username of the target channel.
CaptionOptional. Enter a caption for the document.
Disable notificationOptional. Select whether to send the message silently.
Protect contentOptional. Select whether to protect the message content from forwarding and saving.

Output

This action returns the sent message. Refer to the Telegram Bot API Message documentation for more information on available output fields.

Output fieldDescription
Message IDThe message's unique identifier inside the chat.
FromThe bot that sent the message.
ChatThe chat the message was sent to.
DateThe Unix timestamp the message was sent.
DocumentThe sent document's file details.
CaptionThe caption of the sent document, if any.

Last updated: