fix
This commit is contained in:
parent
b0d6d8daee
commit
dde02e1a94
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user