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

isViewOnce is not present in the Message type #2358

Closed
vinybergamo opened this issue Oct 2, 2024 · 0 comments · Fixed by #2359
Closed

isViewOnce is not present in the Message type #2358

vinybergamo opened this issue Oct 2, 2024 · 0 comments · Fixed by #2359
Labels
bug Something isn't working needs triage

Comments

@vinybergamo
Copy link
Contributor

Description

Problem:

The field isViewOnce is missing from the Message type definition, although it is present in the JSON response of the message. This discrepancy causes issues when handling messages, as the field should be available for media files.

Details:

The isViewOnce field is included in the JSON response when the message contains a media file (such as video, image, or audio). However, it is undefined when the file is not a media type, which is expected behavior. The current Message type definition should reflect the presence of this field to ensure proper handling of media-related messages.

Environment

  • WPPConnect version(s): 1.34.2
  • OS: MacOS Sonoma 14.6.1
  • Node version: Node v22.3.0
  • WhatsApp version: 2.3000.1016291689
  • MultiDevice (BETA): yes

Steps to Reproduce

Send media with view once

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant