diff --git a/README.md b/README.md index 22d3c90..ace732f 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ TelegramBot * [.forwardMessage(chatId, fromChatId, messageId)](#TelegramBot+forwardMessage) ⇒ Promise * [.sendPhoto(chatId, photo, [options])](#TelegramBot+sendPhoto) ⇒ Promise * [.sendAudio(chatId, audio, [options])](#TelegramBot+sendAudio) ⇒ Promise - * [.sendDocument(chatId, doc, [options])](#TelegramBot+sendDocument) ⇒ Promise + * [.sendDocument(chatId, doc, [options], [fileOpts])](#TelegramBot+sendDocument) ⇒ Promise * [.sendSticker(chatId, sticker, [options])](#TelegramBot+sendSticker) ⇒ Promise * [.sendVideo(chatId, video, [options])](#TelegramBot+sendVideo) ⇒ Promise * [.sendVoice(chatId, voice, [options])](#TelegramBot+sendVoice) ⇒ Promise @@ -210,7 +210,7 @@ Send audio -### telegramBot.sendDocument(chatId, doc, [options]) ⇒ Promise +### telegramBot.sendDocument(chatId, doc, [options], [fileOpts]) ⇒ Promise Send Document **Kind**: instance method of [TelegramBot](#TelegramBot) @@ -221,6 +221,7 @@ Send Document | chatId | Number | String | Unique identifier for the message recipient | | doc | String | stream.Stream | Buffer | A file path, Stream or Buffer. Can also be a `file_id` previously uploaded. | | [options] | Object | Additional Telegram query options | +| [fileOpts] | Object | Optional file related meta-data |