Skip to main content

requestMessages

chat.requestMessages({ id: TID });

This method requests the messages for a specific chat identified by its unique ID. It retrieves the conversation history for the corresponding chat session.

Known Properties​

  • id: The unique identifier of the chat session for which messages are being requested.

Retrieving Messages for a Specific Chat Session​

Use this method to fetch the message history for an ongoing chat session. This can be necessary for loading past messages when the chat widget initializes or re-initializes.

chat.requestMessages({ id: '12345' });

When the chat widget is loaded or the page is refreshed, invoke this method to display previous conversations and maintain continuity in the chat experience.