Use this method to send general files.

Log in to see full request history
timestatususer agent
Retrieving recent requests…
LoadingLoading…

Use this method to send general files. On success, the sent Message is returned. Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future.

See sendDocument official docs for a list of supported parameters and other info.

Path Params
string
required

Your Bot Token

Body Params
string

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

string
Defaults to Required

File to send. You can either pass a file_id as String to resend a file that is already on the Telegram servers, or upload a new file by just passing the path to the file as String and the SDK will take care of uploading it for you.

string
Defaults to Optional

Document caption (may also be used when resending documents by file_id), 0-200 characters

boolean
Defaults to false

Sends the message silently. iOS users will not receive a notification, Android users will receive a notification with no sound. Other apps coming soon.

int32
Defaults to null

If the message is a reply, ID of the original message

Responses

Language
Request
Click Try It! to start a request and see the response here! Or choose an example:
application/json