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);