Skip to content

sendDocument

Sahri Riza Umami edited this page Sep 15, 2017 · 3 revisions

Document message.

sendDocument(chat_id, document, caption, thumb, reply_to_message_id, disable_notification, from_background, reply_markup)
Field Type Description
document inputFile Document to send
thumb inputThumb Document thumb, if available
caption string Document caption, 0-200 characters
chat_id int53 Chat to send message
reply_to_message_id int53 Identifier of a message to reply to or 0
disable_notification Bool Pass true, to disable notification about the message, doesn't works in secret chats
from_background Bool Pass true, if the message is sent from background
reply_markup ReplyMarkup Bots only. Markup for replying to message

Example

Response:

Frequently Asked Questions
The Functions

Clone this wiki locally