RongIMLib View Markdown
    Preparing search index...

    Interface GetHistoryMessageOption

    获取历史消息配置项

    interface GetHistoryMessageOption {
        timestamp?: number;
        count?: number;
        order?: 0 | 1;
    }

    Hierarchy

    • Omit<IGetHistoryMessageOption, "messageType">
      • GetHistoryMessageOption
    Index
    timestamp?: number

    获取此时间之前的消息,0 为从当前时间拉取

    count?: number

    获取消息的数量,有效值范围 [1-100],默认值 20

    • SDK < 5.7.4,范围为 [1-20]
    • SDK ≧ 5.7.4,范围为 [1-100]
    order?: 0 | 1

    获取消息的排列顺序

    • 0: 升序
    • 1: 降序