Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(sendfunction): created a function sendFunction to react to a message #1

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

Luisotee
Copy link
Contributor

@Luisotee Luisotee commented Oct 2, 2023

This is my first PR to a public repository, so if I did something wrong please tell me.

I added a function to react to a message in whatsapp like this:
image

An example of the function in use:

async function onNewMessage(message: Message) {
  console.log("New message received:", message);
  sender.sendReaction(message.from, "😍", message.id);
}

Description of change

Pull-Request Checklist

  • Code is up-to-date with the main branch
  • npm run lint passes with this change
  • npm run test passes with this change
  • This pull request links relevant issues as Fixes #0000
  • There are new or updated unit tests validating the change
  • Documentation has been updated to reflect this change
  • The new commits follow conventions outlined in the conventional commit spec

@j05u3
Copy link
Owner

j05u3 commented Oct 2, 2023

awesome 🙌

@j05u3 j05u3 merged commit 554151b into j05u3:main Oct 2, 2023
4 checks passed
@github-actions
Copy link

github-actions bot commented Oct 2, 2023

🎉 This PR is included in version 2.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@j05u3
Copy link
Owner

j05u3 commented Oct 2, 2023

Just did a small test with Monaguillo.org, looks great thanks 🎉

image

@Luisotee
Copy link
Contributor Author

Luisotee commented Oct 2, 2023

Maybe an idea for you, in my bot I use it to tell the user wether his message is completed, failed, in queue or processing:

image

@j05u3
Copy link
Owner

j05u3 commented Oct 2, 2023

Maybe an idea for you, in my bot I use it to tell the user wether his message is completed, failed, in queue or processing:

image

Yeah, may be useful in my bot too, thank you, for now I'm focusing on sustainability ✌️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants