add sinceId to DialogsRequest

This commit is contained in:
Pavel 2023-08-15 15:43:53 +03:00
parent 942cf81ce6
commit c68299f924
2 changed files with 11 additions and 10 deletions

View File

@ -362,7 +362,7 @@ func TestMgClient_Dialogs(t *testing.T) {
Reply(200).
BodyString(`[{"id": 1, "chat_id": 1, "created_at": "2018-01-01T00:00:00.000000Z"}]`)
req := DialogsRequest{Active: 0}
req := DialogsRequest{Active: 0, SinceID: 1}
data, status, err := c.Dialogs(req)
if err != nil {

View File

@ -153,6 +153,7 @@ type (
Assign uint8 `url:"assign,omitempty"`
Active uint8 `url:"active,omitempty"`
Since string `url:"since,omitempty"`
SinceID int `url:"since_id,omitempty"`
Until string `url:"until,omitempty"`
Limit int `url:"limit,omitempty"`
}