From dc6ece3a09a9f42ccd7073a5abd25bee0ba38f41 Mon Sep 17 00:00:00 2001 From: Daniel Morawetz Date: Mon, 9 Nov 2015 21:06:22 +0100 Subject: [PATCH] Clarified API access in comments --- lib/api/account.js | 4 ++-- lib/api/auth.js | 4 ++-- lib/api/contacts.js | 4 ++-- lib/api/messages.js | 4 ++-- lib/api/updates.js | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/api/account.js b/lib/api/account.js index 7ce9906..a5a69ba 100644 --- a/lib/api/account.js +++ b/lib/api/account.js @@ -15,7 +15,7 @@ var utility = require('../utility'); // See [Api Methods](https://core.telegram.org/methods#working-with-notifications-settings) -// Access only via Client object and `account` instance property +// Access only via Client object (like client.account) and `account` instance property function Account(client) { this.client = client; @@ -48,4 +48,4 @@ Account.prototype.updateStatus = function (offline, callback) { // Exports the class -module.exports = exports = Account; \ No newline at end of file +module.exports = exports = Account; diff --git a/lib/api/auth.js b/lib/api/auth.js index d0fd4fd..37a92d1 100644 --- a/lib/api/auth.js +++ b/lib/api/auth.js @@ -16,7 +16,7 @@ var utility = require('../utility'); // See [User Authorization](https://core.telegram.org/api/auth) // and [Api Methods](https://core.telegram.org/methods#registration-authorization) -// Access only via Client object and `auth` instance property +// Access only via Client object (like client.auth) and `auth` instance property function Auth(client) { this.client = client; @@ -116,4 +116,4 @@ Auth.prototype.checkPhone = function (phone_number, callback) { // Export the class. -module.exports = exports = Auth; \ No newline at end of file +module.exports = exports = Auth; diff --git a/lib/api/contacts.js b/lib/api/contacts.js index 0c52b4f..60fa2fb 100644 --- a/lib/api/contacts.js +++ b/lib/api/contacts.js @@ -15,7 +15,7 @@ var utility = require('../utility'); // See [Api Methods](https://core.telegram.org/methods#working-with-contacts) -// Access only via Client object and `contacts` instance property +// Access only via Client object (like client.contacts) and `contacts` instance property function Contacts(client) { this.client = client; @@ -42,4 +42,4 @@ Contacts.prototype.getContacts = function (hash, callback) { }; // Export the class -module.exports = exports = Contacts; \ No newline at end of file +module.exports = exports = Contacts; diff --git a/lib/api/messages.js b/lib/api/messages.js index 0e2c332..89c73a2 100644 --- a/lib/api/messages.js +++ b/lib/api/messages.js @@ -15,7 +15,7 @@ var utility = require('../utility'); // See [Api Methods](https://core.telegram.org/methods#working-with-messages) -// Access only via Client object and `messages` instance property +// Access only via Client object (like client.messages) and `messages` instance property function Messages(client) { this.client = client; @@ -123,4 +123,4 @@ Messages.prototype.sendMessage = function (peer, message, random_id, callback) { }; // Export the class. -module.exports = exports = Messages; \ No newline at end of file +module.exports = exports = Messages; diff --git a/lib/api/updates.js b/lib/api/updates.js index 96079a0..32f11dd 100644 --- a/lib/api/updates.js +++ b/lib/api/updates.js @@ -15,7 +15,7 @@ var utility = require('../utility'); // See [Api Methods](https://core.telegram.org/methods#working-with-updates) -// Access only via Client object and `updates` instance property +// Access only via Client object (like client.updates) and `updates` instance property function Updates(client) { this.client = client; @@ -55,4 +55,4 @@ Updates.prototype.getDifference = function (pts, date, qts, callback) { }; // Export the class -module.exports = exports = Updates; \ No newline at end of file +module.exports = exports = Updates;