diff --git a/v2/options.go b/v2/options.go index db80863..6479d16 100644 --- a/v2/options.go +++ b/v2/options.go @@ -166,5 +166,5 @@ func WithFrom(from time.Time) Option { // WithUntil request messages until a point in time. func WithUntil(until time.Time) Option { - return option("from=" + strconv.FormatInt(getUTCTimestamp(until), 10)) + return option("until=" + strconv.FormatInt(getUTCTimestamp(until), 10)) }