-
Notifications
You must be signed in to change notification settings - Fork 0
/
client_message_updated.go
49 lines (36 loc) · 1.32 KB
/
client_message_updated.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package tdproto
func NewClientMessageUpdated(p ClientMessageUpdatedParams) (r ClientMessageUpdated) {
r.Name = r.GetName()
r.ConfirmId = ConfirmId()
r.Params = p
return r
}
// Message created or changed
type ClientMessageUpdated struct {
BaseEvent
Params ClientMessageUpdatedParams `json:"params"`
}
func (p ClientMessageUpdated) GetName() string { return "client.message.updated" }
// Params of the client.message.updated event
type ClientMessageUpdatedParams struct {
// Chat, task or contact jid. Required.
To JID `json:"to"`
// Message content. Required.
Content MessageContent `json:"content"`
// Uid created by client. Recommended.
MessageId string `json:"message_id,omitempty"`
// Replied to message id. Not required.
ReplyTo string `json:"reply_to,omitempty"`
// Forwarded messages (previously was for reply too). Not required.
LinkedMessages []string `json:"linked_messages,omitempty"`
// Important flag. Not required. Default: false
Important bool `json:"important,omitempty"`
// Disable links preview generation. Not required. Default: false
Nopreview bool `json:"nopreview,omitempty"`
// Message attachments
Uploads []string `json:"uploads,omitempty"`
// Backward compatibility mode
OldStyleAttachment bool `json:"old_style_attachment,omitempty"`
// Deprecated
Comment string `json:"comment,omitempty"`
}