mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-30 05:48:00 +00:00
Eslint correction
This commit is contained in:
parent
763f717a04
commit
42a2d24273
@ -22,7 +22,7 @@ class TelegramBot extends EventEmitter {
|
|||||||
'location', 'new_chat_participant', 'left_chat_participant', 'new_chat_title',
|
'location', 'new_chat_participant', 'left_chat_participant', 'new_chat_title',
|
||||||
'new_chat_photo', 'delete_chat_photo', 'group_chat_created'
|
'new_chat_photo', 'delete_chat_photo', 'group_chat_created'
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Both request method to obtain messages are implemented. To use standard polling, set `polling: true`
|
* Both request method to obtain messages are implemented. To use standard polling, set `polling: true`
|
||||||
* on `options`. Notice that [webHook](https://core.telegram.org/bots/api#setwebhook) will need a SSL certificate.
|
* on `options`. Notice that [webHook](https://core.telegram.org/bots/api#setwebhook) will need a SSL certificate.
|
||||||
@ -372,7 +372,7 @@ class TelegramBot extends EventEmitter {
|
|||||||
opts.formData = content[0];
|
opts.formData = content[0];
|
||||||
opts.qs.document = content[1];
|
opts.qs.document = content[1];
|
||||||
if (opts.formData && Object.keys(fileOpts).length) {
|
if (opts.formData && Object.keys(fileOpts).length) {
|
||||||
opts.formData['document'].options = fileOpts;
|
opts.formData.document.options = fileOpts;
|
||||||
}
|
}
|
||||||
return this._request('sendDocument', opts);
|
return this._request('sendDocument', opts);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user