2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-22 18:07:16 +00:00

fix: remove try catch in _fixAddFileThumb

This commit is contained in:
Daniel 2022-12-31 14:07:51 +01:00
parent 58261d1be3
commit 53b5565e8a

View File

@ -243,7 +243,6 @@ class TelegramBot extends EventEmitter {
opts.formData = {}; opts.formData = {};
} }
try {
const attachName = 'photo'; const attachName = 'photo';
const [formData] = this._formatSendData(attachName, options.thumb.replace('attach://', '')); const [formData] = this._formatSendData(attachName, options.thumb.replace('attach://', ''));
@ -251,9 +250,6 @@ class TelegramBot extends EventEmitter {
opts.formData[attachName] = formData[attachName]; opts.formData[attachName] = formData[attachName];
opts.qs.thumb = `attach://${attachName}`; opts.qs.thumb = `attach://${attachName}`;
} }
} catch (ex) {
throw Promise.reject(ex);
}
} }
} }