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

# getHistoryMsg

> Function getHistoryMsg in the Baileys API.

> **getHistoryMsg**(`message`): [`IHistorySyncNotification`](/proto-reference/Message/interfaces/IHistorySyncNotification)

Defined in: [src/Utils/history.ts:157](https://github.com/WhiskeySockets/Baileys/blob/master/src/Utils/history.ts#L157)

## Parameters

### message

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

## Returns

[`IHistorySyncNotification`](/proto-reference/Message/interfaces/IHistorySyncNotification)
