wa-js: Unable to send Text/File Message, Module findChat was not found with e=>e.findChat

WA-JS Version

3.4.2

WhatsApp Version

2.3000.1014827428

Browser Version

126.0.6478.127

Operation System

OS X Sonoma

Steps to reproduce

  1. Send chat with sendTextMessage Method with createChat option to true
  2. Send chat with sendFileMessage Method with createChat option to true

What is expected?

This should send message or media to recipient number

What is actually happening?

Now it’s return error because internal method is not found. Below is the error details:

wpp.js:2 Module findChat was not found with e=>e.findChat

Uncaught (in promise) 
  TypeError: (0 , i.findChat) is not a function
      at t.find (core.js:2:141127)
      at t.assertFindChat (core.js:2:100130)
      at t.sendFileMessage (core.js:2:177171)

This caused issue with sending message.

Any additional comments?

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 7
  • Comments: 31 (1 by maintainers)

Commits related to this issue

Most upvoted comments

@sergey-chechaev, ⭐3 XP earned, 🏆First Comment Added completed! Contribute more to raise your XP/Level, complete challenges for extra achievements! [Sign up for personal dashboard]

icon

This bot should be turned off

I can confirm The update is working, Thanks @icleitoncosta

The same issue is causing my application to completely fail to work. If possible, please urgently fix this. Tks very much.

Same problem here… I’m unable to open chat with any contact

Input: WPP.chat.openChatBottom(‘553491929394@c.us’);

Output: Uncaught TypeError: (0 , i.findChat) is not a function at t.find (<anonymous>:2:141119) at t.assertFindChat (<anonymous>:2:100122) at t.openChatBottom (<anonymous>:2:160631) at <anonymous>:1:16

I think this is the end now they encoded the chat ID keeps changing …

well… I have all the issues above

I also encountered the same problem when using the chat.openChatBottom and chat.sendFileMessage methods ~ version:3.2.6

There seems to be an issue when using sendTextMessage/sendFileMessage with createChat option set to true.

await WPP.chat.sendTextMessage('6281XXXXX0779@c.us', 'Content', { createChat: true })