Merge pull request #47 from DmitryZagorulko/master
add comment attribute to file channel settings, originator and avatar url
This commit is contained in:
commit
55dfc23bc0
@ -187,6 +187,7 @@ func TestMgClient_TextMessages(t *testing.T) {
|
|||||||
Type: MsgTypeText,
|
Type: MsgTypeText,
|
||||||
Text: "hello!",
|
Text: "hello!",
|
||||||
},
|
},
|
||||||
|
Originator: "user",
|
||||||
User: User{
|
User: User{
|
||||||
ExternalID: "6",
|
ExternalID: "6",
|
||||||
Nickname: "octopus",
|
Nickname: "octopus",
|
||||||
@ -227,6 +228,7 @@ func TestMgClient_ImageMessages(t *testing.T) {
|
|||||||
Type: MsgTypeImage,
|
Type: MsgTypeImage,
|
||||||
Items: []Item{{ID: uploadFileResponse.ID}},
|
Items: []Item{{ID: uploadFileResponse.ID}},
|
||||||
},
|
},
|
||||||
|
Originator: "user",
|
||||||
User: User{
|
User: User{
|
||||||
ExternalID: "6",
|
ExternalID: "6",
|
||||||
Nickname: "octopus",
|
Nickname: "octopus",
|
||||||
|
@ -60,6 +60,7 @@ type Channel struct {
|
|||||||
ID uint64 `json:"id,omitempty"`
|
ID uint64 `json:"id,omitempty"`
|
||||||
Type string `json:"type,omitempty"`
|
Type string `json:"type,omitempty"`
|
||||||
Name string `json:"name,omitempty"`
|
Name string `json:"name,omitempty"`
|
||||||
|
AvatarUrl string `json:"avatar_url,omitempty"`
|
||||||
Settings ChannelSettings `json:"settings,omitempty,brackets"`
|
Settings ChannelSettings `json:"settings,omitempty,brackets"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -110,6 +111,8 @@ type ChannelSettingsFilesBase struct {
|
|||||||
Quoting string `json:"quoting,omitempty"`
|
Quoting string `json:"quoting,omitempty"`
|
||||||
Deleting string `json:"deleting,omitempty"`
|
Deleting string `json:"deleting,omitempty"`
|
||||||
Max uint64 `json:"max_items_count,omitempty"`
|
Max uint64 `json:"max_items_count,omitempty"`
|
||||||
|
CommentAttribute string `json:"comment_attribute,omitempty"`
|
||||||
|
CommentMaxCharsCount int `json:"comment_max_chars_count,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// FullFileResponse uploaded file data
|
// FullFileResponse uploaded file data
|
||||||
@ -230,6 +233,7 @@ type EditMessageRequestMessage struct {
|
|||||||
// SendData struct
|
// SendData struct
|
||||||
type SendData struct {
|
type SendData struct {
|
||||||
Message Message `json:"message"`
|
Message Message `json:"message"`
|
||||||
|
Originator string `json:"originator"`
|
||||||
User User `json:"user"`
|
User User `json:"user"`
|
||||||
Channel uint64 `json:"channel"`
|
Channel uint64 `json:"channel"`
|
||||||
ExternalChatID string `json:"external_chat_id"`
|
ExternalChatID string `json:"external_chat_id"`
|
||||||
|
Loading…
Reference in New Issue
Block a user