From 1034b7e62adb5871c81759ca93fcae5e5fc99b94 Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Fri, 1 Jun 2018 17:57:14 +0300 Subject: [PATCH 1/2] update data types --- v1/types.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/v1/types.go b/v1/types.go index 88bb0a1..694d48e 100644 --- a/v1/types.go +++ b/v1/types.go @@ -116,16 +116,3 @@ type TransportRequestMeta struct { ID uint64 `json:"id"` Timestamp int64 `json:"timestamp"` } - -// ActivityCallback activation callback -type ActivityCallback struct { - ClientId string `json:"clientId"` - Activity Activity `json:"activity"` - SystemUrl string `json:"systemUrl,omitempty"` -} - -// Activity struct -type Activity struct { - Active bool `json:"active"` - Freeze bool `json:"freeze"` -} From ba8b1b34ddc4f1f3527861e19f2221cc4040b089 Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Fri, 1 Jun 2018 18:13:56 +0300 Subject: [PATCH 2/2] add external_channel_id --- v1/types.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/v1/types.go b/v1/types.go index 694d48e..f5e985e 100644 --- a/v1/types.go +++ b/v1/types.go @@ -71,9 +71,10 @@ type UpdateMessage struct { // SendData struct type SendData struct { - Message SendMessage `url:"message"` - User User `url:"user"` - Channel uint64 `url:"channel"` + Message SendMessage `url:"message"` + User User `url:"user"` + Channel uint64 `url:"channel"` + ExternalChatID string `url:"external_chat_id"` } // UpdateData struct