From fccc723e0d026081890bed7e99230302e9446d3b Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Thu, 13 Sep 2018 17:03:20 +0300 Subject: [PATCH] message types --- v1/types.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/v1/types.go b/v1/types.go index 633d8c0..385728b 100644 --- a/v1/types.go +++ b/v1/types.go @@ -14,6 +14,12 @@ const ( ChannelFeatureSend string = "send" // ChannelFeatureBoth channel implement feature on both directions ChannelFeatureBoth string = "both" + + MsgTypeText string = "text" + MsgTypeSystem string = "system" + MsgTypeCommand string = "command" + MsgTypeOrder string = "order" + MsgTypeProduct string = "product" ) // MgClient type @@ -151,6 +157,7 @@ type WebhookData struct { Content string `json:"content"` QuoteExternalID string `json:"quote_external_id,omitempty"` QuoteContent string `json:"quote_content,omitempty"` + Type string `json:"type"` User *MessageDataUser `json:"user,omitempty"` Bot *MessageDataBot `json:"bot,omitempty"` Product *MessageDataProduct `json:"product,omitempty"`