-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I need to know each message, when and who read it #418
Comments
See this: |
no simple |
i want like this
|
but i want to use this one |
Sorry brother,i want like this:
other “Baileys - Typescript/Javascript WhatsApp Web API”,
/* Get the message info, who has read it, who its been delivered to */
@mutex ((jid, messageID) => jid+messageID)
async messageInfo (jid: string, messageID: string) {
const query = ['query', {type: 'message_info', index: messageID, jid: jid, epoch: this.msgCount.toString()}, null]
const response = (await this.query ({json: query, binaryTags: [22, WAFlag.ignore], expect200: true}))[2]
const info: MessageInfo = {reads: [], deliveries: []}
if (response) {
const reads = response.filter (node => node[0] === 'read')
if (reads[0]) {
info.reads = reads[0][2].map (item => item[1])
}
const deliveries = response.filter (node => node[0] === 'delivery')
if (deliveries[0]) {
info.deliveries = deliveries[0][2].map (item => item[1])
}
}
return info
}
but i want to use this whatsapp-web.js, message_ack is simple ,so simple
can use with this whatsapp-web.js?????
… Guilherme Mascarenhas ***@***.***> 於 2020年11月9日 下午10:47 寫道:
See this:
message_ack <https://pedroslopez.me/whatsapp-web.js/Client.html#event:message_ack>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#418 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AHLJ5AAYV57RNBS2CVPUJUDSO7XIFANCNFSM4TM54JAQ>.
|
The message_ack is emitted when an ack event occurrs on message that you've sent. this will give you a list of messages between you and a given destinatary. |
* 'master' of https://github.com/pedroslopez/whatsapp-web.js: chore: mark version v1.12.0 docs: switch links to point to the guide docs: fix error generating Label docs feat: Get message delivery information (close pedroslopez#418) feat: mark chat as unread (pedroslopez#475) feat: add GroupChat types (pedroslopez#485) docs: fix typo feat: added starred indicator to messages (pedroslopez#501) feat: star/unstar messages (pedroslopez#494) feat: get Contact's "About" text (close pedroslopez#491) feat: get links included in message (pedroslopez#457) feat: send media as stickers (pedroslopez#479) docs: fix slight typo feat: send media as document (pedroslopez#490) feat: Get registered ID for a given phone number (pedroslopez#483) feat(interface): Open chat search, open chat at message position (pedroslopez#447) feat: WA Business Labels support (pedroslopez#407) # Conflicts: # package.json
hi bro
I need to know each message, when and who read it
There are detailed information in the information card of the whatsup app, showing the details of the reader, can it be easily obtained in large quantities?
The text was updated successfully, but these errors were encountered: