messages method
Returns ChannelHistory. Used to retrieve many messages at once.
Behaviour of ChannelHistory changes based on which of to
and from
are available.
- if
to
isnull
andfrom
innull
, then it will work on all messages. - if
to
isnull
andfrom
is defined, then it will work on all messages sincefrom
. - if
to
is defined andfrom
isnull
, then it will work on all messages up toto
. - if both
to
andfrom
are defined, then it will work on messages that were sent betweenfrom
andto
.
Implementation
ChannelHistory messages({Timetoken? from, Timetoken? to}) =>
ChannelHistory(_core, this, _keyset, from, to);