@areumtecnologia/baileys 1.1.4 → 1.1.5
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/package.json
CHANGED
|
@@ -119,6 +119,8 @@ class MessageNormalizer {
|
|
|
119
119
|
if (message.pollCreationMessage || message.pollCreationMessageV3) return 'poll_creation';
|
|
120
120
|
if (message.pollUpdateMessage) return 'poll_update';
|
|
121
121
|
if (message.templateButtonReplyMessage) return 'template_button_reply';
|
|
122
|
+
if (message.pinInChatMessage) return 'pin_in_chat';
|
|
123
|
+
if (message.unpinInChatMessage) return 'unpin_in_chat';
|
|
122
124
|
// Detectar o tipo de interactiveButtons pela propriedade name, se interactive buttons tiver apenas um botão
|
|
123
125
|
if (message.interactiveMessage && message.interactiveMessage.interactiveButtons && message.interactiveMessage.interactiveButtons[0].name === 'review_and_pay') return 'review_and_pay';
|
|
124
126
|
if (message.interactiveMessage && message.interactiveMessage.interactiveButtons && message.interactiveMessage.interactiveButtons[0].name === 'review_order') return 'review_order';
|