Merge pull request #22 from gwinn/master

bot/customer update events
This commit is contained in:
Alex Lushpai 2018-10-03 11:36:05 +03:00 committed by GitHub
commit 31cdf97775
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,6 +34,8 @@ const (
WsEventUserJoined string = "user_joined_chat" WsEventUserJoined string = "user_joined_chat"
WsEventUserLeave string = "user_left_chat" WsEventUserLeave string = "user_left_chat"
WsEventUserUpdated string = "user_updated" WsEventUserUpdated string = "user_updated"
WsCustomerUpdated string = "customer_updated"
WsBotUpdated string = "bot_updated"
ChannelFeatureNone string = "none" ChannelFeatureNone string = "none"
ChannelFeatureReceive string = "receive" ChannelFeatureReceive string = "receive"
@ -564,6 +566,14 @@ type (
*UserRef *UserRef
} }
WsEventCustomerUpdatedData struct {
*UserRef
}
WsEventBotUpdatedData struct {
*UserRef
}
WsEventDialogAssignData struct { WsEventDialogAssignData struct {
Dialog *Dialog `json:"dialog"` Dialog *Dialog `json:"dialog"`
Chat *Chat `json:"chat"` Chat *Chat `json:"chat"`