mirror of
https://github.com/retailcrm/mg-bot-api-client-go.git
synced 2024-11-23 13:26:03 +03:00
add sinceId to DialogsRequest
This commit is contained in:
commit
3fb19e388b
@ -362,7 +362,7 @@ func TestMgClient_Dialogs(t *testing.T) {
|
|||||||
Reply(200).
|
Reply(200).
|
||||||
BodyString(`[{"id": 1, "chat_id": 1, "created_at": "2018-01-01T00:00:00.000000Z"}]`)
|
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)
|
data, status, err := c.Dialogs(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -153,6 +153,7 @@ type (
|
|||||||
Assign uint8 `url:"assign,omitempty"`
|
Assign uint8 `url:"assign,omitempty"`
|
||||||
Active uint8 `url:"active,omitempty"`
|
Active uint8 `url:"active,omitempty"`
|
||||||
Since string `url:"since,omitempty"`
|
Since string `url:"since,omitempty"`
|
||||||
|
SinceID int `url:"since_id,omitempty"`
|
||||||
Until string `url:"until,omitempty"`
|
Until string `url:"until,omitempty"`
|
||||||
Limit int `url:"limit,omitempty"`
|
Limit int `url:"limit,omitempty"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user