-
Notifications
You must be signed in to change notification settings - Fork 0
/
emitable.go
48 lines (40 loc) · 1.04 KB
/
emitable.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
/*
Package emitable defines all of the types that are recommended
for all fsm chatbot targets to implement in their emitter.
All emitters should also handle strings, in addition to what
is defined here.
*/
package emitable
// Audio is a struct that represents an audio file to be emitted
type Audio struct {
URL string
}
// File is a struct that represents a generic file to be emitted
type File struct {
URL string
}
// Image is a struct that represents an image to be emitted
type Image struct {
URL string
}
// Video is a struct that represents an video to be emitted
type Video struct {
URL string
}
// QuickReply is a struct that represents an array of
// possible responses from a user
type QuickReply struct {
Message string
Replies []string
RepliesFormat string
}
// Sleep is a struct to represent that the bot should pause
// for some length of time.
type Sleep struct {
LengthMillis int
}
// Typing is a struct to represent that the bot is typing.
// It is expected to be enabled and disabled
type Typing struct {
Enabled bool
}