Skip to content

Commit

Permalink
Merge pull request #14 from Morosko/master
Browse files Browse the repository at this point in the history
Clarified API access in comments
  • Loading branch information
enricostara committed Nov 10, 2015
2 parents ab6f693 + dc6ece3 commit da57948
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions lib/api/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -48,4 +48,4 @@ Account.prototype.updateStatus = function (offline, callback) {


// Exports the class
module.exports = exports = Account;
module.exports = exports = Account;
4 changes: 2 additions & 2 deletions lib/api/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -116,4 +116,4 @@ Auth.prototype.checkPhone = function (phone_number, callback) {


// Export the class.
module.exports = exports = Auth;
module.exports = exports = Auth;
4 changes: 2 additions & 2 deletions lib/api/contacts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -42,4 +42,4 @@ Contacts.prototype.getContacts = function (hash, callback) {
};

// Export the class
module.exports = exports = Contacts;
module.exports = exports = Contacts;
4 changes: 2 additions & 2 deletions lib/api/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -123,4 +123,4 @@ Messages.prototype.sendMessage = function (peer, message, random_id, callback) {
};

// Export the class.
module.exports = exports = Messages;
module.exports = exports = Messages;
4 changes: 2 additions & 2 deletions lib/api/updates.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -55,4 +55,4 @@ Updates.prototype.getDifference = function (pts, date, qts, callback) {
};

// Export the class
module.exports = exports = Updates;
module.exports = exports = Updates;

0 comments on commit da57948

Please sign in to comment.