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:
parent
39c0ce66b9
commit
54130e6df9
@ -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)
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user