2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-28 12:57:38 +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:
Rafael Kr 2016-03-01 10:47:09 +01:00
parent 39c0ce66b9
commit 54130e6df9

View File

@ -277,7 +277,7 @@ TelegramBot.prototype._formatSendData = function (type, data) {
formData[type] = {
value: data,
options: {
filename: decodeURIComponent(fileName),
filename: qs.unescape(fileName),
contentType: mime.lookup(fileName)
}
};