Browse SDKs · Android
SDKsAndroid

Load older messages

Use getAdvancedHistoryMessageList to load conversation history by page.

Copy

Pass null for startMsg on the first query. For each subsequent page, use the boundary message from the previous page as the starting point. Use ViewType.History for ordinary history loading and deduplicate returned messages by clientMsgID.

messageManager.getAdvancedHistoryMessageList(callback, conversationID, startMessage, 20, ViewType.History);