mirror of
https://github.com/retailcrm/mg-bot-api-client-go.git
synced 2024-11-23 13:26:03 +03:00
Add LastUserMessage
field to the Chat
struct
This commit is contained in:
parent
8eb473d7d2
commit
b0e374f88e
44
v1/types.go
44
v1/types.go
@ -344,16 +344,17 @@ type (
|
|||||||
}
|
}
|
||||||
|
|
||||||
ChatResponseItem struct {
|
ChatResponseItem struct {
|
||||||
ID uint64 `json:"id"`
|
ID uint64 `json:"id"`
|
||||||
Avatar string `json:"avatar"`
|
Avatar string `json:"avatar"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Channel Channel `json:"channel,omitempty"`
|
Channel Channel `json:"channel,omitempty"`
|
||||||
Customer UserRef `json:"customer"`
|
Customer UserRef `json:"customer"`
|
||||||
AuthorID uint64 `json:"author_id"`
|
AuthorID uint64 `json:"author_id"`
|
||||||
LastMessage Message `json:"last_message"`
|
LastMessage Message `json:"last_message"`
|
||||||
LastActivity string `json:"last_activity"`
|
LastUserMessage MessageID `json:"last_user_message"`
|
||||||
CreatedAt string `json:"created_at"`
|
LastActivity string `json:"last_activity"`
|
||||||
UpdatedAt string `json:"updated_at"`
|
CreatedAt string `json:"created_at"`
|
||||||
|
UpdatedAt string `json:"updated_at"`
|
||||||
}
|
}
|
||||||
|
|
||||||
MemberResponseItem struct {
|
MemberResponseItem struct {
|
||||||
@ -470,6 +471,10 @@ type (
|
|||||||
*AttachmentList
|
*AttachmentList
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MessageID struct {
|
||||||
|
ID uint64 `json:"id"`
|
||||||
|
}
|
||||||
|
|
||||||
TextMessage struct {
|
TextMessage struct {
|
||||||
Content string `json:"content"`
|
Content string `json:"content"`
|
||||||
Quote *QuoteMessage `json:"quote"`
|
Quote *QuoteMessage `json:"quote"`
|
||||||
@ -623,15 +628,16 @@ type (
|
|||||||
}
|
}
|
||||||
|
|
||||||
Chat struct {
|
Chat struct {
|
||||||
ID uint64 `json:"id"`
|
ID uint64 `json:"id"`
|
||||||
Avatar string `json:"avatar"`
|
Avatar string `json:"avatar"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Channel *Channel `json:"channel,omitempty"`
|
Channel *Channel `json:"channel,omitempty"`
|
||||||
Members []Member `json:"members"`
|
Members []Member `json:"members"`
|
||||||
Customer *UserRef `json:"customer"`
|
Customer *UserRef `json:"customer"`
|
||||||
AuthorID uint64 `json:"author_id"`
|
AuthorID uint64 `json:"author_id"`
|
||||||
LastMessage *Message `json:"last_message"`
|
LastMessage *Message `json:"last_message"`
|
||||||
LastActivity string `json:"last_activity"`
|
LastUserMessage *MessageID `json:"last_user_message"`
|
||||||
|
LastActivity string `json:"last_activity"`
|
||||||
}
|
}
|
||||||
|
|
||||||
WaitingChat struct {
|
WaitingChat struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user