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

Added functionality for Mark Messages as Read #85

Merged
merged 7 commits into from
Apr 21, 2023

Conversation

pratsonii
Copy link
Contributor

Fixes #29

@github-actions github-actions bot added java Pull requests that update Java code tests labels Apr 17, 2023
@codecov
Copy link

codecov bot commented Apr 17, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.11 🎉

Comparison is base (f7ddb96) 85.80% compared to head (8bc387d) 85.91%.

Additional details and impacted files
@@             Coverage Diff              @@
##               main      #85      +/-   ##
============================================
+ Coverage     85.80%   85.91%   +0.11%     
- Complexity      475      480       +5     
============================================
  Files           153      154       +1     
  Lines          1141     1150       +9     
  Branches         11       11              
============================================
+ Hits            979      988       +9     
  Misses          144      144              
  Partials         18       18              
Impacted Files Coverage Δ
...java/com/whatsapp/api/domain/messages/Message.java 95.65% <ø> (ø)
.../com/whatsapp/api/domain/messages/ReadMessage.java 100.00% <100.00%> (ø)
...om/whatsapp/api/impl/WhatsappBusinessCloudApi.java 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Owner

@Bindambc Bindambc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some suggested changes. Thank you for the pull request.

@Bindambc Bindambc added the enhancement New feature or request label Apr 19, 2023
@Bindambc Bindambc merged commit ce3cc50 into Bindambc:main Apr 21, 2023
@ferasawadi
Copy link

any ideas how to get the message id?

@Bindambc
Copy link
Owner

any ideas how to get the message id?

Hello @ferasawadi, the messages ID can be obtained through a webhook. You will need to set up a webhook in advance to receive the messages and be able to respond to them or mark them as read.

You can find more detailed instructions on how to configure the webhook at the following links: link1 and link2.

This library provides support for deserializing the payloads received through the webhook. You can find an example of this here: link3.

I hope this can help you. Please, feel free to open an issue if you have any further questions.

@Bindambc Bindambc mentioned this pull request May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request java Pull requests that update Java code tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mark Messages as Read
4 participants