1
0
mirror of synced 2024-11-24 22:16:05 +03:00

Merge pull request #25 from gwinn/master

message types
This commit is contained in:
Alex Lushpai 2018-09-13 17:04:52 +03:00 committed by GitHub
commit 02ac4efe62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,6 +14,12 @@ const (
ChannelFeatureSend string = "send" ChannelFeatureSend string = "send"
// ChannelFeatureBoth channel implement feature on both directions // ChannelFeatureBoth channel implement feature on both directions
ChannelFeatureBoth string = "both" ChannelFeatureBoth string = "both"
MsgTypeText string = "text"
MsgTypeSystem string = "system"
MsgTypeCommand string = "command"
MsgTypeOrder string = "order"
MsgTypeProduct string = "product"
) )
// MgClient type // MgClient type
@ -151,6 +157,7 @@ type WebhookData struct {
Content string `json:"content"` Content string `json:"content"`
QuoteExternalID string `json:"quote_external_id,omitempty"` QuoteExternalID string `json:"quote_external_id,omitempty"`
QuoteContent string `json:"quote_content,omitempty"` QuoteContent string `json:"quote_content,omitempty"`
Type string `json:"type"`
User *MessageDataUser `json:"user,omitempty"` User *MessageDataUser `json:"user,omitempty"`
Bot *MessageDataBot `json:"bot,omitempty"` Bot *MessageDataBot `json:"bot,omitempty"`
Product *MessageDataProduct `json:"product,omitempty"` Product *MessageDataProduct `json:"product,omitempty"`