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

# OnChatMessageReceived

> Reference for the OnChatMessageReceived event on PlayFabMultiplayerManager in the Party Unity SDK, raised when the local player receives a chat message.

Occurs when a chat message is received.

## Arguments

### sender (object)

The class that raised the event.

### from (PlayFabPlayer)

The player the message was sent from.

### message (string)

The contents of the message.

### type (ChatMessageType)

A parameter that specifies the type of message.


## Related topics

- [Class PlayFabMultiplayerManager](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/index.md)
- [Party Unity plugin quickstart](/services/playfab/multiplayer/networking/party-unity-plugin-quickstart.md)
- [game_chat_transcribed_chat_received_state_change](/reference/chat/gamechat2/structs/game_chat_transcribed_chat_received_state_change.md)
- [game_chat_text_chat_received_state_change](/reference/chat/gamechat2/structs/game_chat_text_chat_received_state_change.md)
- [PartyChatTextReceivedOptions](/services/playfab/multiplayer/networking/reference/enums/partychattextreceivedoptions.md)
