diff --git a/lib/Client.js b/lib/Client.js index c11c5a19c..d0de8c022 100644 --- a/lib/Client.js +++ b/lib/Client.js @@ -530,7 +530,13 @@ var Client = (function () { } }, { key: "sendFile", - value: function sendFile(destination) {} + value: function sendFile(destination, file) { + var callback = arguments.length <= 2 || arguments[2] === undefined ? function (err, msg) {} : arguments[2]; + + var self = this; + + return new Promise(function (resolve, reject) {}); + } }, { key: "sendMessage", value: function sendMessage(destination, message) { diff --git a/src/Client.js b/src/Client.js index bcaad81a7..2773607bb 100644 --- a/src/Client.js +++ b/src/Client.js @@ -543,8 +543,14 @@ class Client { } - sendFile(destination) { - + sendFile(destination, file, callback = function (err, msg) { }) { + + var self = this; + + return new Promise(function(resolve, reject){ + + }); + } sendMessage(destination, message, callback = function (err, msg) { }, premessage = "") { @@ -1047,7 +1053,7 @@ class Client { } else { channId = destination; } - if(channId) + if (channId) resolve(channId); }); }