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

# updateMessageWithReceipt

> Upserts a receipt in the message

> **updateMessageWithReceipt**(`msg`, `receipt`): `void`

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

Upserts a receipt in the message

## Parameters

### msg

`Pick`\<[`WAMessage`](/api-reference/type-aliases/WAMessage), `"userReceipt"`>

### receipt

[`IUserReceipt`](/proto-reference/interfaces/IUserReceipt)

## Returns

`void`
