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