It would be really nice if you could specify a from date when getting messages from a room.
As far as I can tell, the Mautrix library has support for getting the nearest event id to a date, via https://pkg.go.dev/maunium.net/go/mautrix#Client.TimestampToEvent