mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-29 05:17:41 +00:00
Use of safer function qs.unescape
I didn't know about that function, thank you. I've updated the code.
This commit is contained in:
parent
39c0ce66b9
commit
54130e6df9
@ -277,7 +277,7 @@ TelegramBot.prototype._formatSendData = function (type, data) {
|
|||||||
formData[type] = {
|
formData[type] = {
|
||||||
value: data,
|
value: data,
|
||||||
options: {
|
options: {
|
||||||
filename: decodeURIComponent(fileName),
|
filename: qs.unescape(fileName),
|
||||||
contentType: mime.lookup(fileName)
|
contentType: mime.lookup(fileName)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user