Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TemplateComponent ¶ added in v1.0.1
type TemplateComponent struct { Type string `json:"type"` // "body", "button" SubType string `json:"subType"` // "quick_reply" (in case of button) Index string `json:"index"` // "0" (in case of button) Parameters []struct { Type string `json:"type"` // "header", "text", "payload" Payload string `json:"payload"` // "hello_world" (in case of payload) Text string `json:"text"` // "Hello World" (in case of text) } `json:"parameters"` }
type TemplateOptions ¶
type TemplateOptions struct { Name string `json:"name"` // "hello_world", Language struct { Code string `json:"code"` // "en_US", "en" Policy string `json:"policy"` // "deterministic" } `json:"language"` // { "code": "en_US" } Components []TemplateComponent `json:"components"` }
type TextOptions ¶
type TextOptions struct {
Body string `json:"body"`
}
Click to show internal directories.
Click to hide internal directories.