WhiskeySockets / Baileys

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

[BUG] #617

Closed JEREMIKURNIAWAN closed 6 months ago

JEREMIKURNIAWAN commented 6 months ago

how to solve when a new bot is active he sends waiting messages?

Guru322 commented 6 months ago

how to solve when a new bot is active he sends waiting messages?

implement getMessage to handle retries

https://github.com/WhiskeySockets/Baileys/blob/daafc122759bd5b54279f82b196e1ce41aec4807/Example/example.ts#L282

JEREMIKURNIAWAN commented 6 months ago

Thanks you!

feri-irawan commented 6 months ago

how to solve when a new bot is active he sends waiting messages?

implement getMessage to handle retries

https://github.com/WhiskeySockets/Baileys/blob/daafc122759bd5b54279f82b196e1ce41aec4807/Example/example.ts#L282

I don't use the store, so should i use store or just return the message like this?

async function getMessage(message: WAMessage) {
  return message.message.text
}
Guru322 commented 6 months ago

how to solve when a new bot is active he sends waiting messages?

implement getMessage to handle retries https://github.com/WhiskeySockets/Baileys/blob/daafc122759bd5b54279f82b196e1ce41aec4807/Example/example.ts#L282

I don't use the store, so should i use store or just return the message like this?

async function getMessage(message: WAMessage) {
  return message.message.text
}

use a store