#Who Seen My Msg in Goup ?

56 messages · Page 1 of 1 (latest)

sly sandal
#

I wnat get My mesages info in Groups .
How do it plizz?

mystic plover
#

I think this can give you an idea of how to do it #suggestions message

mystic plover
#

Or you can try something like this:

let chat = await client.getChatById(chatId);
let messages = await chat.fetchMessages({limit: 100});
for (let message of messages){
    if (message.fromMe == true){
        console.log (message.body);
        console.log(message.getInfo());
    }
}
sly sandal
mystic plover
#

Wherever you need to catch the information you need, or you can create an endpoint to do that

sly sandal
#

How to read it ?

#

@mystic plover

mystic plover
inner eagle
sly sandal
inner eagle
sly sandal
#

yes

sly sandal
#

@inner eagle @mystic plover

mystic plover
#

Try this ```javascript
let msgInfo = await message.getInfo();
console.log(msgInfo);

sly sandal
#

@mystic plover
The same problem

inner eagle
#

try message.getInfo().then(data->console.log(data))

mystic plover
#

Are you sure that all messages was saw for others people?

mystic plover
sly sandal
mystic plover
#

This should return all informations about the message

mystic plover
#

It should work ```javascript
let msgInfo = await message.getInfo();
console.log(msgInfo);

mystic plover
#

I see but accordingly with the docs it should work

sly sandal
inner eagle
#

should work

mystic plover
#

Try on more thing ```js
message.getInfo().then(data => console.log(data));

sly sandal
#

@inner eagle @mystic plover

mystic plover
#

Maybe is a problem with the lib

sly sandal
#

@mystic plover @inner eagle

sly sandal
#

@mystic plover ?

mystic plover
#

Unfortunately, there's nothing I can help anymore with

sly sandal
mystic plover
#

Not at all

sly sandal
#

@mystic plover But if you have a copy and this feature is working, can you please give me

mystic plover
#

Seeing the lib's github, I think it doesn't work for a while

sly sandal
#

Is there another way?

mystic plover
#

You can try use the event ACK, something like ```js
client.on('message_ack', (msg, ack) => {
/*
== ACK VALUES ==
ACK_ERROR: -1
ACK_PENDING: 0
ACK_SERVER: 1
ACK_DEVICE: 2
ACK_READ: 3
ACK_PLAYED: 4
*/

if(ack == 3) {
    // The message was read
}

});

#

But it will work for new message

sly sandal
mystic plover
#

I understand, but this can be another way to do, you May create a json with the information to save the data

sly sandal
mystic plover
#

I don't know what in the msg object, maybe there's the information you want

sly sandal
inner eagle
sly sandal
inner eagle
#

You mean running the code on my pc?

sly sandal
inner eagle
#

Can't

#

I'll be able to do that only tomorrow

#

Try free Amazon dedicated servers btw

sly sandal