mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-22 09:57:10 +00:00
fix: remove try catch in _fixAddFileThumb
This commit is contained in:
parent
58261d1be3
commit
53b5565e8a
@ -243,7 +243,6 @@ class TelegramBot extends EventEmitter {
|
||||
opts.formData = {};
|
||||
}
|
||||
|
||||
try {
|
||||
const attachName = 'photo';
|
||||
const [formData] = this._formatSendData(attachName, options.thumb.replace('attach://', ''));
|
||||
|
||||
@ -251,9 +250,6 @@ class TelegramBot extends EventEmitter {
|
||||
opts.formData[attachName] = formData[attachName];
|
||||
opts.qs.thumb = `attach://${attachName}`;
|
||||
}
|
||||
} catch (ex) {
|
||||
throw Promise.reject(ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user