From dde02e1a94017686ed50c4b0e580b9908af84e21 Mon Sep 17 00:00:00 2001 From: Cedric Hoelzl Date: Fri, 20 Sep 2019 13:44:05 +0200 Subject: [PATCH] fix --- config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.js b/config.js index 2fc55f5..5bb8251 100644 --- a/config.js +++ b/config.js @@ -30,7 +30,7 @@ module.exports = function(url, cmds){ let options = { url: this.url, - form:{ + qs:{ chat_id:message.chat.id, user_id: message.from.id, user_name: message.from.name, @@ -39,7 +39,7 @@ module.exports = function(url, cmds){ } }; return new Promise((resolve,reject)=>{ - return request.get(options, function (err, response, body) { + return request(options, function (err, response, body) { if (err) { //bot.error(err); return reject(err);