-
Notifications
You must be signed in to change notification settings - Fork 0
/
events.go
63 lines (50 loc) · 1.76 KB
/
events.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package vk
import (
"github.com/SevereCloud/vksdk/object"
)
// ChatCreateEvent struct
type ChatCreateEvent struct {
Channel string // The id of created channel.
Text string // Chat title
// original response (objects.MessageNewObject)
Data interface{}
}
// ChatTitleUpdateEvent struct
type ChatTitleUpdateEvent struct {
Channel string // The id of created channel.
NewText string // New chat title
// original response (objects.MessageNewObject)
Data interface{}
}
// ChatPhotoUpdateEvent struct
type ChatPhotoUpdateEvent struct {
Channel string // The id of created channel.
NewPhoto object.MessagesMessageActionPhoto // The object with new cover photo urls
Removed bool // true if cover photo has changed, otherwise false
// original response (objects.MessageNewObject)
Data interface{}
}
// ChatPinUpdateEvent struct
type ChatPinUpdateEvent struct {
Channel string // The id of created channel.
UserID string // A string identifying the user who changed pin
MessageID string // A string identifying the changed pin message
Unpinned bool // true if message has unpinned, otherwise false
// original response (objects.MessageNewObject)
Data interface{}
}
// UserEnteredChatEvent struct
type UserEnteredChatEvent struct {
Channel string // The channel over which the message was received.
UserID string // A string identifying the new user in chat
ByLink bool
// original response (objects.MessageNewObject)
Data interface{}
}
// UserLeavedChatEvent struct
type UserLeavedChatEvent struct {
Channel string // The channel over which the message was received.
UserID string // A string identifying the leaved user in chat
// original response (objects.MessageNewObject)
Data interface{}
}