quotation from transport to mg
This commit is contained in:
parent
619f407935
commit
bd7b959455
@ -98,7 +98,7 @@ func TestMgClient_Messages(t *testing.T) {
|
||||
t.Logf("%v", ext)
|
||||
|
||||
snd := SendData{
|
||||
SendMessage{
|
||||
Message: SendMessage{
|
||||
Message{
|
||||
ExternalID: ext,
|
||||
Type: "text",
|
||||
@ -106,13 +106,13 @@ func TestMgClient_Messages(t *testing.T) {
|
||||
},
|
||||
time.Now(),
|
||||
},
|
||||
User{
|
||||
User: User{
|
||||
ExternalID: "6",
|
||||
Nickname: "octopus",
|
||||
Firstname: "Joe",
|
||||
},
|
||||
channelId,
|
||||
"24798237492374",
|
||||
Channel: channelId,
|
||||
ExternalChatID: "24798237492374",
|
||||
}
|
||||
|
||||
data, status, err := c.Messages(snd)
|
||||
|
@ -76,6 +76,11 @@ type SendData struct {
|
||||
User User `url:"user" json:"user"`
|
||||
Channel uint64 `url:"channel" json:"channel"`
|
||||
ExternalChatID string `url:"external_chat_id" json:"external_chat_id"`
|
||||
Quote *SendMessageRequestQuote `url:"quote,omitempty" json:"quote,omitempty"`
|
||||
}
|
||||
|
||||
type SendMessageRequestQuote struct {
|
||||
ExternalID string `json:"external_id"`
|
||||
}
|
||||
|
||||
// UpdateData struct
|
||||
|
Loading…
Reference in New Issue
Block a user