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

# getContentType

> Get the key to access the true type of content

> **getContentType**(`content`): `undefined` | keyof IMessage

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

Get the key to access the true type of content

## Parameters

### content

`undefined` | [`IMessage`](/proto-reference/interfaces/IMessage)

## Returns

`undefined` | keyof IMessage
