diff --git a/v1/client_test.go b/v1/client_test.go index cefce56..292b34b 100644 --- a/v1/client_test.go +++ b/v1/client_test.go @@ -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 { diff --git a/v1/types.go b/v1/types.go index 4daebe9..a8dd6fc 100644 --- a/v1/types.go +++ b/v1/types.go @@ -146,15 +146,16 @@ type ( } DialogsRequest struct { - ID uint64 `url:"id,omitempty"` - ChatID string `url:"chat_id,omitempty" json:"chat_id"` - UserID string `url:"user_id,omitempty" json:"user_id"` - BotID string `url:"bot_id,omitempty" json:"bot_id"` - Assign uint8 `url:"assign,omitempty"` - Active uint8 `url:"active,omitempty"` - Since string `url:"since,omitempty"` - Until string `url:"until,omitempty"` - Limit int `url:"limit,omitempty"` + ID uint64 `url:"id,omitempty"` + ChatID string `url:"chat_id,omitempty" json:"chat_id"` + UserID string `url:"user_id,omitempty" json:"user_id"` + BotID string `url:"bot_id,omitempty" json:"bot_id"` + 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"` } DialogAssignRequest struct {