Currently in order to fetch posts in time period we should iterate over all messages, however it should respect OffsetDate given from opts
func (c *Client) IterHistory(PeerID any, callback func(*NewMessage) error, opts ...*HistoryOption) error {
...
req := &MessagesGetHistoryParams{
Peer: peerToAct,
OffsetID: opt.Offset,
OffsetDate: 0,
MaxID: opt.MaxID,
MinID: opt.MinID,
}
...
Currently in order to fetch posts in time period we should iterate over all messages, however it should respect OffsetDate given from
opts