> ## Documentation Index
> Fetch the complete documentation index at: https://baileys.wiki/llms.txt
> Use this file to discover all available pages before exploring further.

# aggregateMessageKeysNotFromMe

> Given a list of message keys, aggregates them by chat & sender.

> **aggregateMessageKeysNotFromMe**(`keys`): `object`\[]

Defined in: [src/Utils/messages.ts:1017](https://github.com/WhiskeySockets/Baileys/blob/master/src/Utils/messages.ts#L1017)

Given a list of message keys, aggregates them by chat & sender. Useful for sending read receipts in bulk

## Parameters

### keys

[`WAMessageKey`](/api-reference/type-aliases/WAMessageKey)\[]

## Returns

`object`\[]
