Merge pull request #48 from laurynas-karvelis/feature/allow-sending-disabled-notification-messages

feature: allow sending silent notifications
This commit is contained in:
Mahdi Dibaiee 2018-12-24 12:00:00 +00:00 committed by GitHub
commit db3c59c4cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,6 +81,15 @@ export default class Base extends EventEmitter {
return bot.api[this.method](this.properties);
}
/**
* Set disable_notification property to true (send a silent notification)
* @returns {object} returns the message object
*/
disableNotification() {
this.properties.disable_notification = true;
return this;
}
/**
* Returns properties of the object
* @return {object} properties of object