doc: Add note on specifying additional Telegram query options

release
GochoMugo 8 years ago
parent 4051117ed0
commit d7197998dd
No known key found for this signature in database
GPG Key ID: 7B6A01CB57AA39E4
  1. 14
      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);
```
<a name="sending-files-options"></a>
### File Options (metadata)

Loading…
Cancel
Save