This commit is contained in:
Cedric Hoelzl 2019-09-20 13:44:05 +02:00
parent b0d6d8daee
commit dde02e1a94

View File

@ -30,7 +30,7 @@ module.exports = function(url, cmds){
let options = { let options = {
url: this.url, url: this.url,
form:{ qs:{
chat_id:message.chat.id, chat_id:message.chat.id,
user_id: message.from.id, user_id: message.from.id,
user_name: message.from.name, user_name: message.from.name,
@ -39,7 +39,7 @@ module.exports = function(url, cmds){
} }
}; };
return new Promise((resolve,reject)=>{ return new Promise((resolve,reject)=>{
return request.get(options, function (err, response, body) { return request(options, function (err, response, body) {
if (err) { if (err) {
//bot.error(err); //bot.error(err);
return reject(err); return reject(err);