Skip to content

Commit

Permalink
feat: se adiciona la funcionalidad de enviar reacciones para el prove…
Browse files Browse the repository at this point in the history
…edor meta sendReaction

se incluye la opcion de poder enviar reacciones a los mensajes al provider meta
  • Loading branch information
Jorge Chavarriaga committed Nov 10, 2023
1 parent 3bcbb97 commit abf89ff
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/provider/src/meta/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,24 @@ class MetaProvider extends ProviderClass {

this.sendtext(number, message)
}

/**
* @param {*} number
* @param {*} react
*/
sendReaction = async (number, react) => {
const body = {
messaging_product: 'whatsapp',
recipient_type: 'individual',
to: number,
type: 'reaction',
reaction: {
message_id: react.message_id,
emoji: react.emoji,
},
}
return this.sendMessageMeta(body)
}
}

module.exports = MetaProvider

0 comments on commit abf89ff

Please sign in to comment.