WhiskeySockets / Baileys

Lightweight full-featured typescript/javascript WhatsApp Web API
https://baileys.whiskeysockets.io/
MIT License
4.1k stars 1.38k forks source link

How To Fix 'Connection Closed'😈 #1004

Closed putra0311 closed 3 months ago

putra0311 commented 3 months ago

If you get connection closed problem on your termux/terminal for WhatsApp bot, just change the version of whiskeysocket,

The first thing to do is to uninstall the latest version of Whiskey, which is 6.7.7.

$ npm uninstall whiskeysocket/baileys

Second, you install the whiskeysocket version like I did.

$ npm i @whiskeysockets/baileys@6.6.0

That's how if suddenly your bot script is broken. Hope it helps 😎

putra0311 commented 3 months ago

Hope it works bro 😈

putra0311 commented 3 months ago

If it's still broken, you can change the version of the whiskeysocket again according to the version of the whiskeysocket on your WhatsApp bot, okay?😎

ramiya-yt commented 3 months ago

Update to Newest Version will Works!

putra0311 commented 3 months ago

Update to Newest Version will Works!

Yeah thats right

But this is only for those who don't work/have the 'Connection Closed' problem

mdmaruf782 commented 3 months ago

add version to your whatsapp config option

version: [2, 3000, 1015901307],

It will work