CachedRange: {
    from: number;
    to: number;
}

One interval of the locally cached history, both bounds are server dates of messages (Message.date) and both are inclusive.

Type declaration

  • from: number

    Server date of the oldest cached message of the interval, 0 — the interval reaches the beginning

  • to: number

    Server date of the newest one, 0 — the interval reaches the present, allowed in the last interval only