Closed qazgal1 closed 2 years ago
Thank you for joining our community, happy. We are currently fixing this bug, our new version will be released soon.
Working with Love!
try
client.loadAndGetAllMessagesInChat('972507157096@c.us').then((data)=>{ console.log(data); }).catch(() => { })
returns empty but not gives error
but is there any conversation in the chat?
yes
I checked with multiple chats and all returned empty
this function only loads new messages
ohhhh thanks!! so what function loads all messages?
client.getAllMessagesInChat('00000000000@c.us', true, false).then((data) => { console.log(data); });
i checked with new messages and its steal returned nothing
and
client.getAllMessagesInChat('00000000000@c.us', true, false).then((data) => { console.log(data); });
that's only gave me the last seven messeges
client.getAllMessagesInChat('00000000000@c.us', true, false).then((data) => { console.log(data); });
and when I ran it the second time gave me only the last messages
This issue is stale because it has been open for 30 days with no activity.
use
const chat = Store.Chat.get('32323323@c.us');
const loadedMessages = await window.Store.ConversationMsgs.loadEarlierMsgs(chat);
This issue is stale because it has been open for 30 days with no activity.
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
Description
[Description of the bug, When Issue Happens]
Environment
Steps to Reproduce
Your Code
// Supports ES6 // import { create, Whatsapp } from 'venom-bot'; const venom = require('venom-bot');
venom .create({ session: 'session-name', //name of session multidevice: true // for version not multidevice use false.(default: true) }) .then((client) => start(client)) .catch((erro) => { console.log(erro); });
async function start(client) { console.log("papa") const allMessages = await client.loadAndGetAllMessagesInChat( '972507157096@c.us' ); console.log(allMessages) console.log("mama") };
Additional context / Screenshot
Add any other context about the problem here. If applicable, add screenshots to help explain.