messages method

ChannelHistory messages({
  1. Timetoken? from,
  2. Timetoken? to,
})

Returns ChannelHistory. Used to retrieve many messages at once.

Behaviour of ChannelHistory changes based on which of to and from are available.

  • if to is null and from in null, then it will work on all messages.
  • if to is null and from is defined, then it will work on all messages since from.
  • if to is defined and from is null, then it will work on all messages up to to.
  • if both to and from are defined, then it will work on messages that were sent between from and to.

Implementation

ChannelHistory messages({Timetoken? from, Timetoken? to}) =>
    ChannelHistory(_core, this, _keyset, from, to);