forked from ChatPlug/libfb-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
XMAAttachment.ts
83 lines (82 loc) · 1.85 KB
/
XMAAttachment.ts
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import Attachment from '../Attachment'
// XMA - ExtensibleMessageAttachment
export interface XMAAttachment extends Attachment {
type: (
'UnavailableXMA' |
'StoryXMA' |
'ExternalUrlXMA' |
'AdvertXMA' |
'EventReminderXMA' |
'LeaderboardUpdateXMA' |
'LiveLocationXMA' |
'LocationXMA' |
'GroupXMA' |
'LightweightActionXMA' |
'PageXMA' |
'ProductXMA' |
'MontageXMA' |
'InstagramXMA'
)
message?: string
description?: string
url?: string
imageURL?: string
}
export interface UnavailableXMA extends XMAAttachment {
type: 'UnavailableXMA'
message: string
}
export interface StoryXMA extends XMAAttachment {
type: 'StoryXMA'
url: string
}
export interface ExternalUrlXMA extends XMAAttachment {
type: 'ExternalUrlXMA'
url: string
}
export interface AdvertXMA extends XMAAttachment {
type: 'AdvertXMA'
message: string
url?: string
}
export interface EventReminderXMA extends XMAAttachment {
type: 'EventReminderXMA'
message: string
description: string
}
export interface LeaderboardUpdateXMA extends XMAAttachment {
type: 'LeaderboardUpdateXMA'
message: string
imageURL: string
}
export interface LiveLocationXMA extends XMAAttachment {
type: 'LiveLocationXMA'
url: string
}
export interface LocationXMA extends XMAAttachment {
type: 'LocationXMA'
url: string
}
export interface GroupXMA extends XMAAttachment {
type: 'GroupXMA'
url: string
}
export interface LightweightActionXMA extends XMAAttachment {
type: 'LightweightActionXMA'
message: string
}
export interface PageXMA extends XMAAttachment {
type: 'PageXMA'
url: string
}
export interface ProductXMA extends XMAAttachment {
type: 'ProductXMA'
url: string
}
export interface MontageXMA extends XMAAttachment {
type: 'MontageXMA'
}
export interface InstagramXMA extends XMAAttachment {
type: 'InstagramXMA'
url: string
}