From ca83218213bdb7775aa063e56581f0590ed4e532 Mon Sep 17 00:00:00 2001 From: Alexey Date: Fri, 30 Aug 2024 16:42:04 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=BF=D0=B0=D1=80=D0=B0=D0=BC=D0=B5=D1=82=D1=80=20Inc?= =?UTF-8?q?ludeMassCommunication=20=D0=B2=20=D0=B7=D0=B0=D0=BF=D1=80=D0=BE?= =?UTF-8?q?=D1=81=20=D1=81=D0=BF=D0=B8=D1=81=D0=BA=D0=B0=20=D1=87=D0=B0?= =?UTF-8?q?=D1=82=D0=BE=D0=B2,=20=D0=B4=D0=B8=D0=B0=D0=BB=D0=BE=D0=B3?= =?UTF-8?q?=D0=BE=D0=B2,=20=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B9=20(#76)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v1/types.go | 67 ++++++++++++++++++++++++++++------------------------- 1 file changed, 35 insertions(+), 32 deletions(-) diff --git a/v1/types.go b/v1/types.go index 5827457..2b119a4 100644 --- a/v1/types.go +++ b/v1/types.go @@ -148,15 +148,16 @@ type ( } ChatsRequest struct { - ID uint64 `url:"id,omitempty"` - ChannelID uint64 `url:"channel_id,omitempty" json:"channel_id"` - ChannelType string `url:"channel_type,omitempty" json:"channel_type"` - CustomerID uint64 `url:"customer_id,omitempty" json:"customer_id"` - CustomerExternalID string `url:"customer_external_id,omitempty" json:"customer_external_id"` - Since string `url:"since,omitempty"` - Until string `url:"until,omitempty"` - Limit int `url:"limit,omitempty"` - SinceID int `url:"since_id,omitempty"` + ID uint64 `url:"id,omitempty"` + ChannelID uint64 `url:"channel_id,omitempty" json:"channel_id"` + ChannelType string `url:"channel_type,omitempty" json:"channel_type"` + CustomerID uint64 `url:"customer_id,omitempty" json:"customer_id"` + CustomerExternalID string `url:"customer_external_id,omitempty" json:"customer_external_id"` + Since string `url:"since,omitempty"` + Until string `url:"until,omitempty"` + Limit int `url:"limit,omitempty"` + SinceID int `url:"since_id,omitempty"` + IncludeMassCommunication uint8 `url:"include_mass_communication,omitempty"` } MembersRequest struct { @@ -169,16 +170,17 @@ 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"` - SinceID int `url:"since_id,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"` + IncludeMassCommunication uint8 `url:"include_mass_communication,omitempty"` } DialogAssignRequest struct { @@ -207,19 +209,20 @@ type ( } MessagesRequest struct { - ID []int `url:"id,omitempty"` - ChatID uint64 `url:"chat_id,omitempty" json:"chat_id"` - DialogID uint64 `url:"dialog_id,omitempty" json:"dialog_id"` - UserID uint64 `url:"user_id,omitempty" json:"user_id"` - CustomerID uint64 `url:"customer_id,omitempty" json:"customer_id"` - BotID uint64 `url:"bot_id,omitempty" json:"bot_id"` - ChannelID uint64 `url:"channel_id,omitempty" json:"channel_id"` - ChannelType string `url:"channel_type,omitempty" json:"channel_type"` - Scope string `url:"scope,omitempty"` - Type string `url:"type,omitempty"` - Since string `url:"since,omitempty"` - Until string `url:"until,omitempty"` - Limit int `url:"limit,omitempty"` + ID []int `url:"id,omitempty"` + ChatID uint64 `url:"chat_id,omitempty" json:"chat_id"` + DialogID uint64 `url:"dialog_id,omitempty" json:"dialog_id"` + UserID uint64 `url:"user_id,omitempty" json:"user_id"` + CustomerID uint64 `url:"customer_id,omitempty" json:"customer_id"` + BotID uint64 `url:"bot_id,omitempty" json:"bot_id"` + ChannelID uint64 `url:"channel_id,omitempty" json:"channel_id"` + ChannelType string `url:"channel_type,omitempty" json:"channel_type"` + Scope string `url:"scope,omitempty"` + Type string `url:"type,omitempty"` + Since string `url:"since,omitempty"` + Until string `url:"until,omitempty"` + Limit int `url:"limit,omitempty"` + IncludeMassCommunication uint8 `url:"include_mass_communication,omitempty"` } MessageSendRequest struct {