From bc9702741e1c84f4170c8982ebd778fddc9ac790 Mon Sep 17 00:00:00 2001 From: Opheugene Date: Wed, 6 Nov 2024 19:05:27 +0100 Subject: [PATCH 1/4] Added IsSystem flag to UserRef struct --- v1/types.go | 1 + 1 file changed, 1 insertion(+) diff --git a/v1/types.go b/v1/types.go index d93cd5a..ead493e 100644 --- a/v1/types.go +++ b/v1/types.go @@ -597,6 +597,7 @@ type ( IsAdmin bool `json:"is_admin"` Available bool `json:"available"` IsTechnicalAccount bool `json:"is_technical_account"` + IsSystem bool `json:"is_system"` } Channel struct { From d5aa1a0794893117cbadf98e66fb956dae8353ee Mon Sep 17 00:00:00 2001 From: Opheugene Date: Wed, 6 Nov 2024 19:32:35 +0100 Subject: [PATCH 2/4] Added Last Dialog to Chat struct --- v1/types.go | 1 + 1 file changed, 1 insertion(+) diff --git a/v1/types.go b/v1/types.go index ead493e..a5f5764 100644 --- a/v1/types.go +++ b/v1/types.go @@ -353,6 +353,7 @@ type ( LastMessage Message `json:"last_message"` LastUserMessage MessageID `json:"last_user_message"` LastActivity string `json:"last_activity"` + LastDialog Dialog `json:"last_dialog"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` } From f6affa20632c5ab4066cce4c2be9a0197080afe9 Mon Sep 17 00:00:00 2001 From: Opheugene Date: Wed, 6 Nov 2024 19:59:49 +0100 Subject: [PATCH 3/4] mod --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 5a416b7..8136b78 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/retailcrm/mg-bot-api-client-go +module github.com/opheugene/mg-bot-api-client-go go 1.13 From 22d56ef2dca1112dc0677a97081db58d0ba12004 Mon Sep 17 00:00:00 2001 From: Opheugene Date: Wed, 6 Nov 2024 20:06:49 +0100 Subject: [PATCH 4/4] -mod --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 8136b78..5a416b7 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/opheugene/mg-bot-api-client-go +module github.com/retailcrm/mg-bot-api-client-go go 1.13