node-telegram-api icon indicating copy to clipboard operation
node-telegram-api copied to clipboard

Feature: add disable_notification param

Open empas opened this issue 9 years ago • 0 comments

Hi. Just tried to add silent param to your Message type and it works.

{
      key: 'notification',

      /**
       * Set disable_notification of the message
       * @param  {boolean} enable
       * @return {object} returns the message object
       */
      value: function preview() {
          var enable = arguments[0] === undefined ? true : arguments[0];

          this.properties.disable_notification = !enable;
          return this;
      }
}

empas avatar Mar 30 '16 10:03 empas