Class: Broadcast

Broadcast()

Represents a Status/Story on WhatsApp

Constructor

new Broadcast()

Source:

Extends

Members

id :object

ID that represents the chat

Type:
  • object
Source:

msgs :Array.<Message>

Messages statuses

Type:
Source:

timestamp :number

Unix timestamp of last status

Type:
  • number
Source:

totalCount :number

Number of available statuses

Type:
  • number
Source:

unreadCount :number

Number of not viewed

Type:
  • number
Source:

Methods

getChat() → {Promise.<Chat>}

Returns the Chat this message was sent in

Source:
Returns:
Type
Promise.<Chat>

getContact() → {Promise.<Contact>}

Returns the Contact this message was sent from

Source:
Returns:
Type
Promise.<Contact>