feature: allow sending silent notifications #48

Merged
laurynas-karvelis merged 1 commits from feature/allow-sending-disabled-notification-messages into master 2018-12-24 12:00:01 +00:00
Showing only changes of commit 468354f6a8 - Show all commits

View File

@ -81,6 +81,15 @@ export default class Base extends EventEmitter {
return bot.api[this.method](this.properties); 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 * Returns properties of the object
* @return {object} properties of object * @return {object} properties of object