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

# getStatusFromReceiptType

> Given a type of receipt, returns what the new status of the message should be

> **getStatusFromReceiptType**(`type`): `undefined` | [`Status`](/proto-reference/WebMessageInfo/enumerations/Status)

Defined in: [src/Utils/generics.ts:347](https://github.com/WhiskeySockets/Baileys/blob/master/src/Utils/generics.ts#L347)

Given a type of receipt, returns what the new status of the message should be

## Parameters

### type

type from receipt

`undefined` | `string`

## Returns

`undefined` | [`Status`](/proto-reference/WebMessageInfo/enumerations/Status)
