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

getMessageById error #728

Closed
luidigo opened this issue Oct 31, 2022 · 0 comments
Closed

getMessageById error #728

luidigo opened this issue Oct 31, 2022 · 0 comments
Labels
bug Something isn't working needs triage

Comments

@luidigo
Copy link

luidigo commented Oct 31, 2022

Description

when calling await WPP.chat.getMessageById('xxxxx@c.us')

VM61:4 Uncaught (in promise) TypeError: r.getSearchContext is not a function
at t.getMessageById (eval at executeScript (web.whatsapp.com/:476:16), :4:127375)
at t.prepareRawMessage (eval at executeScript (web.whatsapp.com/:476:16), :4:147651)
at t.sendRawMessage (eval at executeScript (web.whatsapp.com/:476:16), :4:155360)
at async t.sendTextMessage (eval at executeScript (web.whatsapp.com/:476:16), :4:156609)

Environment

  • WhatsApp version: '2.2241.7'
  • WA-JS version(s): '2.13.4'
  • Browser: Chrome 106.0.5249.119
  • OS: Windows X
  • MultiDevice (BETA): yes

Steps to Reproduce

call await WPP.chat.getMessageById('xxxxx@c.us') or any function that calls it, like sendTextMessage with quoted option

@luidigo luidigo added bug Something isn't working needs triage labels Oct 31, 2022
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

No branches or pull requests

1 participant