From d7197998ddda32f4a69562372487a1ceaf090987 Mon Sep 17 00:00:00 2001 From: GochoMugo Date: Mon, 11 Dec 2017 18:32:19 +0300 Subject: [PATCH] doc: Add note on specifying additional Telegram query options --- doc/usage.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/doc/usage.md b/doc/usage.md index 657846b..9f73897 100644 --- a/doc/usage.md +++ b/doc/usage.md @@ -129,6 +129,20 @@ const fileOptions = { bot.sendAudio(chatId, data, {}, fileOptions); ``` +**NOTE:** You **MUST** provide an empty object (`{}`) in place of +*Additional Telegram query options*, if you have **no** query options +to specify. For example, + +```js +// WRONG! +// 'fileOptions' will be taken as additional Telegram query options!!! +bot.sendAudio(chatId, data, fileOptions); + +// RIGHT! +bot.sendAudio(chatId, data, {}, fileOptions); +``` + + ### File Options (metadata)