mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-20 20:49:14 +00:00
chore: mark version v1.11.0 (again)
PR had to be merged and added to the release
This commit is contained in:
@@ -98,6 +98,9 @@
|
|||||||
<dt><a href="Message.html#type">type</a></dt>
|
<dt><a href="Message.html#type">type</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
</dd>
|
</dd>
|
||||||
|
<dt><a href="Message.html#vCards">vCards</a></dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -241,6 +244,11 @@
|
|||||||
<p>Message type</p>
|
<p>Message type</p>
|
||||||
<dl class="dl-compact">
|
<dl class="dl-compact">
|
||||||
</dl>
|
</dl>
|
||||||
|
<h3 id="vCards"><span class="symbol-name">vCards</span><small class="property-type">
|
||||||
|
Array of string</small></h3>
|
||||||
|
<p>List of vCards contained in the message.</p>
|
||||||
|
<dl class="dl-compact">
|
||||||
|
</dl>
|
||||||
</section>
|
</section>
|
||||||
<h2>Methods</h2>
|
<h2>Methods</h2>
|
||||||
<section>
|
<section>
|
||||||
|
|||||||
@@ -1606,6 +1606,11 @@ client.initialize();
|
|||||||
</dt>
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
</dd>
|
</dd>
|
||||||
|
<dt class="symbol-index-name">
|
||||||
|
<a href="Message.html#vCards" class="!symbol-index-name">Message#<wbr>vCards</a>
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -148,6 +148,12 @@ class Message extends Base {
|
|||||||
*/
|
*/
|
||||||
this.location = data.type === MessageTypes.LOCATION ? new Location(data.lat, data.lng, data.loc) : undefined;
|
this.location = data.type === MessageTypes.LOCATION ? new Location(data.lat, data.lng, data.loc) : undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* List of vCards contained in the message.
|
||||||
|
* @type {Array&lt;string>}
|
||||||
|
*/
|
||||||
|
this.vCards = data.type === MessageTypes.CONTACT_CARD_MULTI ? data.vcardList.map((c) => c.vcard) : data.type === MessageTypes.CONTACT_CARD ? [data.body] : [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates the mentions in the message body.
|
* Indicates the mentions in the message body.
|
||||||
* @type {Array&lt;string>}
|
* @type {Array&lt;string>}
|
||||||
|
|||||||
Reference in New Issue
Block a user