Feature: add disable_notification param #19

Open
opened 2016-03-30 10:23:32 +00:00 by empas · 0 comments
empas commented 2016-03-30 10:23:32 +00:00 (Migrated from github.com)

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;
      }
}
Hi. Just tried to add silent param to your Message type and it works. ``` javascript { 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; } } ```
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: thereadme/node-telegram-api#19
No description provided.