From c06b268fee956a0e489971ff730a6608f93a7972 Mon Sep 17 00:00:00 2001 From: Adhiraj Date: Sun, 31 May 2020 00:13:24 +0530 Subject: [PATCH] Options default bug fix --- .DS_Store | Bin 10244 -> 10244 bytes WhatsAppWeb.Send.js | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.DS_Store b/.DS_Store index 453e4862618741a7dd8ac67f8cbfd3e82b52bef1..14f4dc62bc288fb698826ff6ef2d352b613bd44d 100644 GIT binary patch delta 530 zcmZn(XbIS$FDhbaprc@DXi}@AP;F>nYOJGRYH2drSu~Py^W?drN`|7MV&b9_LQ>N4 z0>Vj&$=T^e`K5U&&iOg{MNT=Tsqq5*#TohKp2_)n0Y#~0nW^QIpNsC2kH`cH1ZP&I zMyD5LrUVxxCTHfQE8Bly00Yj+7sW*CIRqF(^78XiIh7p(AmYjn-Vg=@2ZJ_)BSSDl z3_~G91H*KN#SB{+4lvWTK;BYG66pSu~Py-{iTXN*ZFK;u4~gQc^PU z0>Vj&$=T^e`K5U&&iOg{MNT=TsS%mU`FX*aRjHFdi0-P77vL|>$S?N} */ - sendTextMessage: function (id, txt, options) { + sendTextMessage: function (id, txt, options={}) { if (typeof txt !== "string") { return Promise.reject("expected text to be a string") } @@ -67,7 +67,7 @@ module.exports = { * @param {Date} [options.timestamp] optionally set the timestamp of the message in Unix time MS * @return {Promise<[object, object]>} */ - sendMediaMessage: function (id, buffer, mediaType, options) { + sendMediaMessage: function (id, buffer, mediaType, options={}) { // path to upload the media const mediaPathMap = { imageMessage: "/mms/image",